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! Learn more

Reply
Anonymous
Not applicable

Show rows in table between 25th and 75th percentiles of a given measure

Hello All, I am familiar with TopN filter on a visual, but how could I filter in between ranked measures.

 

IE I have a table visual that has facility as rows and a Value called Measure. I want to show just the facilites that fall outside the 25th percentile and before the 75th percentile.  Or for simpler I could do facilities which measures fall out the top 5 and before the bttom 5.

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

I have created some data

vchenwuzmsft_0-1632100009622.png

 

 

Try this measure:

value_measure =
VAR _25 =
    PERCENTILEX.INC ( ALLSELECTED ( 'Table' ), [Values], 0.25 )
VAR _75 =
    PERCENTILEX.INC ( ALLSELECTED ( 'Table' ), [Values], 0.75 )
RETURN
    CALCULATE (
        SUM ( 'Table'[Values] ),
        FILTER ( 'Table', [Values] >= _25 && [Values] <= _75 )
    )

 

Then the result:

vchenwuzmsft_1-1632100009623.png

 

 

Best Regards

Community Support Team _ chenwu zhu

 

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

View solution in original post

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

I have created some data

vchenwuzmsft_0-1632100009622.png

 

 

Try this measure:

value_measure =
VAR _25 =
    PERCENTILEX.INC ( ALLSELECTED ( 'Table' ), [Values], 0.25 )
VAR _75 =
    PERCENTILEX.INC ( ALLSELECTED ( 'Table' ), [Values], 0.75 )
RETURN
    CALCULATE (
        SUM ( 'Table'[Values] ),
        FILTER ( 'Table', [Values] >= _25 && [Values] <= _75 )
    )

 

Then the result:

vchenwuzmsft_1-1632100009623.png

 

 

Best Regards

Community Support Team _ chenwu zhu

 

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

amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

If needed, check if these can help

https://blog.enterprisedna.co/implementing-80-20-logic-in-your-power-bi-analysis/
https://forum.enterprisedna.co/t/testing-the-pareto-principle-80-20-rule-in-power-bi-w-dax/459

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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