cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

Top 10%

I know how to use the Top N filter, but the ask is for the top 10% of values. We have a large dataset of tickets, each ticket has a "duration" value. We want to see the 10% of those values in a table

 

Any help on how to filter that is appreciated 

1 ACCEPTED SOLUTION
Super User IV
Super User IV

@bhmiller89 

Top 10% of the tickets and their duration.

Top 10% Duration = 

VAR T10 =
    TOPN(
        ROUNDUP(
            COUNTROWS(ALL('Table'))*0.1,0), 
            ALL('Table'),
            [Total Duration], 
            DESC 
        )
RETURN
    CALCULATE(
        [Total Duration],
        KEEPFILTERS(T10)
    )

 

Fowmy_0-1597150064142.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Super User IV
Super User IV

@bhmiller89 

Top 10% of the tickets and their duration.

Top 10% Duration = 

VAR T10 =
    TOPN(
        ROUNDUP(
            COUNTROWS(ALL('Table'))*0.1,0), 
            ALL('Table'),
            [Total Duration], 
            DESC 
        )
RETURN
    CALCULATE(
        [Total Duration],
        KEEPFILTERS(T10)
    )

 

Fowmy_0-1597150064142.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Super User II
Super User II

You could try something like this:

Top 10% Customer =
VAR Num =
    INT ( COUNTROWS ( Customer ) * 0.1 )
VAR Top10Customer =
    TOPN ( Num, Customer, [Total Sales], ASC )
RETURN
    Top10Customer

Thank you,
Antriksh Sharma
Super User III
Super User III

You could create a measure to calculate the percent of values and filter for within top 10%?

 


______________


Check out my Data Stories Gallery Christmas Report: Are you on Santa's Naughty or Nice List?

______________


Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved. 


If you found this post helpful, please give Kudos.


I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query. 


www.excelwithallison.com

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors