Forum Discussion
Measure as a Filter assistance
All,
I have a page on my Power BI report that is looking at data within an Excel file. I have a table set up that has the following:
- Date
- Plant ID
- Machine ID
- Product
- Input Cup Counts
- Output Cup Counts
- Lost Prod
- Yield %
The Input/Output/Lost Prod columns are all summarized and the Yield % is an average.
I need to exclude records from this table (Output Count = 0 or Lost Prod < -1000) which will be used within the Filters On All Pages section of the Filters Pane so I figured I'd create a Measure Table and do a simple measure within said table.
- Anonymous4 years ago
Hi EAB1977 ,
I agree with amitchandak's reply. As far as I know, Power BI only supports us to add measure as a filter in visual level filter. So we couldn't add measures as filter in Page/Report level filter. Page/Report level filter could only add columns.
So I suggest you to add [IsException] measure as a filter into visual level filter in the visuals you want to filter by it.
I think filter could not identify True() or False(). Try to use 1 to replace True() and 0 to replace False().
IsException = IF ( OR ( MeasureTable[SumOfLostProduction] < -1000, SUM ( Data[Output Cup Counts] ) = 0 ), 1, 0 )Let [IsException] measure to show items when the value =1 in visual level filter.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- amitchandak
Super User
EAB1977 , Measure filter can only be used at the visual level filter. So you need apply that to each visual
- EAB1977Frequent Visitor
When I bring it into each visual via the Filter, I expect to see True or False as selections. I don't see anything.
- AnonymousNot applicable
Hi EAB1977 ,
I agree with amitchandak's reply. As far as I know, Power BI only supports us to add measure as a filter in visual level filter. So we couldn't add measures as filter in Page/Report level filter. Page/Report level filter could only add columns.
So I suggest you to add [IsException] measure as a filter into visual level filter in the visuals you want to filter by it.
I think filter could not identify True() or False(). Try to use 1 to replace True() and 0 to replace False().
IsException = IF ( OR ( MeasureTable[SumOfLostProduction] < -1000, SUM ( Data[Output Cup Counts] ) = 0 ), 1, 0 )Let [IsException] measure to show items when the value =1 in visual level filter.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.