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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
fabiomanniti
Helper III
Helper III

Report: Filter by a field with at least a certain amount of entries

Hello, I have a table like this:

User IDNameCountry
1MarkGB
2JohnUS
3RobertES

 

I would like to make a page level filter based on countries.

As long as I want the Top N countries I know how to do but what if I want to show only countries with at least 100 users?

So that my page will authomatically update as soon as a country has new people within

Thank you

2 REPLIES 2
OwenAuger
Super User
Super User

Hi there,

The usual TopN filters or any measure-based filters are not available at page or report level (unfortunately).

 

A nice alternative could be to create a calculation group with a calculation item that evaluates the selected measure with an appropriate Country filter applied.

 

You would just need to ensure that you are using explicit measures everywhere, and perhaps tweak any visuals that don't include measures (such as slicers) to ensure that they are filtered by appropriate measures.

 

The calculation item's expression would look something like this (assuming your table is called Users )

 

VAR Threshold = 100
VAR CountriesToInclude = 
    CALCULATETABLE (
        FILTER (
            VALUES ( Users[Country] ),
            CALCULATE ( COUNTROWS ( Users ) ) >= Threshold
        ),
        REMOVEFILTERS () -- Ensure we're counting unfiltered users per country
    )
RETURN
    CALCULATE ( 
        SELECTEDMEASURE (),
        KEEPFILTERS ( CountriesToInclude )
    )
    

 

 Then you would just apply this calculation item as a filter on the relevant pages (or report level).

 

Please post back if needed.

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn
freginier
Super User
Super User

Just create a page level filter on country field choos TOP N and drag/drop number of user field and select 100. 

This filter will automatically filter / update your page. 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors