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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
rpinxt
Power Participant
Power Participant

Use Measure as Filter

Can somebody explain why I cannot use a measure as filter on the whole page (or all pages) but only on the separate visuals on that page?

 

So I have 2 visuals on that page that both can be controlled by that filter measure I made.

But I have to put it in both visuals separate. I wanted do it only 1 time on the page but PBI would not let me.

1 ACCEPTED SOLUTION
MohammadLoran25
Super User
Super User

Hi @rpinxt 

Putting a filter on "Filter on all Pages" section of FilterPane means that it would affect all the visuals of all pages.

If you put a measure as filter on all pages, what does it mean? A measure is a calculation which is done based on the context. And Context is defined once you put the measure in a Visual.

For Example, if you set the Sales Quantity measure to greater than 100 on all pages (assume power bi allows you), how should it behave and filter the visuals?  If you have a card, the card value is made up of the SUM over different fields, how power bi should implement your filter on the card? and also the other visuals is the same as well. So it is meaningless.

 

If this answer solves your problem, please mark it as an accepted solution so the others would find what they need easier.
Regards,
Loran

 

View solution in original post

3 REPLIES 3
MohammadLoran25
Super User
Super User

Hi @rpinxt 

Putting a filter on "Filter on all Pages" section of FilterPane means that it would affect all the visuals of all pages.

If you put a measure as filter on all pages, what does it mean? A measure is a calculation which is done based on the context. And Context is defined once you put the measure in a Visual.

For Example, if you set the Sales Quantity measure to greater than 100 on all pages (assume power bi allows you), how should it behave and filter the visuals?  If you have a card, the card value is made up of the SUM over different fields, how power bi should implement your filter on the card? and also the other visuals is the same as well. So it is meaningless.

 

If this answer solves your problem, please mark it as an accepted solution so the others would find what they need easier.
Regards,
Loran

 

I do understand what you are saying.

In this case the measure would work for all the visuals on the page.

However I agree there would be need of a general rule which would work in all cases.

Also the case when one of the visuals cannot be filtered by that measure.

 

So I guess as a thumb of rule. You can only filter on page(s) with fields from the table. Not with measures.

Yes @rpinxt ,

It is exactly as you said.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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