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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rebecka
Frequent Visitor

Top N filter on page level

Hi,

I have a dynamic Top N filter on organizations, and that is presented in one visual. And that works fine.

But now I want all other visuals to be filtered also on these Top N organizations.

But I don't get that to work.

This is my DAX code:

 
SelectedTopNNumber = IF(HASONEVALUE('TopN'[Top]);Min('TopN'[Top]);10)
AntalEval = COUNT('table1'[StatisticKey])
OrgRankByTopN = IF(HASONEVALUE('dimOrg'[OrgName]);RANKX(ALLSELECTED('dimOrg'[OrgName]); [AntalEval]))
ShouldOrgBeIncluded = IF([OrgRankByTopN]<=[SelectedTopNNumber];1;0)
And this is how the visuals look (with their filters):
Skärmklipp1.PNGSkärmklipp2.PNG
 
So ShouldOrgBeIncluded is used as filter on the first visual, but I want it to be on page filter level (since it's a measure).
I can add the ShouldOrgBeIncluded measure as a filter on the other visual too (and add the
OrgName under Legend) but that does not work properly.
Can I fix this with some more complex DAX code or some other way?
2 REPLIES 2
Icey
Community Support
Community Support

Hi @rebecka ,

Power BI accepts measures as filters only at a single visual level, and it does not accept measures as filters at the page level nor at the report level. You can vote this idea to make it coming soon.

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

rebecka
Frequent Visitor

Hi,

Yes, already voted for that idea!

I was wondering if I can fix it with som clever DAX instead...

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.