Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
irfanarif1
New Member

Ignore column based on slicer selection

I have two values in Performance colum 'Actual and Variance' and Reason for Variance itself.

what i am trying to do is creating a report having color in rows, performance in column, amount in values. While i created a slicer for reason.

 

ColorPerformanceReasonAmount
GreenActual 10
GreenVarianceKnown4
GreenVarianceUnknown3

 

This looks like below report. but when I use the slicer for reason to select known variances it hides the Actual colum from pivot.

 

Sum of AmountPerformance 
ColorActualVariance
Green107

 

 

Hope i explained it well, Kindly let me know if i can use filter for varaince and ignore the selection for actual.

 

 

Sum of AmountPerformance
ColorVariance
Green4

 

dont want to hide Actual column over selection

1 ACCEPTED SOLUTION
v-caliao-msft
Microsoft Employee
Microsoft Employee

@irfanarif1,

 

Based on my research, this requirement cannot be done in a matrix visual. You could use table visual to achieve it.

  1. Create a slicer table by Enter table.Capture.PNG
  2. Create a measure in Original table.
    Measure =
    var selecteditem = IF(HASONEVALUE(Slicer[Slicer]),LASTNONBLANK(Slicer[Slicer],1),BLANK())
    var check = IF((MAX(Table1[Performance])="Actual")||ISBLANK(selecteditem),1,IF(selecteditem=MAX(Table1[Reason]),1,0))
    return check
  3. Add this measure to table filter.
    Capture1.PNG

 

Results.
Capture2.PNGCapture3.PNG

 

Regards,

Charlie Liao

 

View solution in original post

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

@irfanarif1,

 

Based on my research, this requirement cannot be done in a matrix visual. You could use table visual to achieve it.

  1. Create a slicer table by Enter table.Capture.PNG
  2. Create a measure in Original table.
    Measure =
    var selecteditem = IF(HASONEVALUE(Slicer[Slicer]),LASTNONBLANK(Slicer[Slicer],1),BLANK())
    var check = IF((MAX(Table1[Performance])="Actual")||ISBLANK(selecteditem),1,IF(selecteditem=MAX(Table1[Reason]),1,0))
    return check
  3. Add this measure to table filter.
    Capture1.PNG

 

Results.
Capture2.PNGCapture3.PNG

 

Regards,

Charlie Liao

 

Thanks for the table context for slicer solution, it worked, only MAX function was not working with string, so i used LASTNONBLANK instead.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors