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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
sks2701
Helper III
Helper III

Top 10

Hi Team

I have a data set which has column with revenue detail and I have added a custom column for Revenue range as below :

My question is how can we show this in the power bi visuals, if my clients wants to see the Top 10 Co. by Revenue Range

Revenue Range
> $1B
$500M - $1B
$250M - $500M
$100M - $250M
$50M - $100M
$25M - $50M
$10M - $25M
$5M - $10M
$1M - $5M
$100K - $1M
N/A
1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @sks2701 

 

It’s my pleasure to answer for you.

According to your description,I think you can create a measure, then use it in filter pane.

Like this:

Measure =
VAR tab =
    TOPN (
        10,
        CALCULATETABLE (
            DISTINCT ( 'Table1'[value] ),
            FILTER ( ALL ( Table1 ), [Range] = MAX ( Table1[range] ) )
        ),
        [Value]
    )
RETURN
    IF ( MAX ( Table1[value] ) IN tab, 1, 0 )

v-janeyg-msft_1-1604046143198.png

Here is my sample .pbix file.Hope it helps.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

4 REPLIES 4
v-janeyg-msft
Community Support
Community Support

Hi, @sks2701 

 

It’s my pleasure to answer for you.

According to your description,I think you can create a measure, then use it in filter pane.

Like this:

Measure =
VAR tab =
    TOPN (
        10,
        CALCULATETABLE (
            DISTINCT ( 'Table1'[value] ),
            FILTER ( ALL ( Table1 ), [Range] = MAX ( Table1[range] ) )
        ),
        [Value]
    )
RETURN
    IF ( MAX ( Table1[value] ) IN tab, 1, 0 )

v-janeyg-msft_1-1604046143198.png

Here is my sample .pbix file.Hope it helps.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

thank you

camargos88
Community Champion
Community Champion

@sks2701 ,

 

This link can help you:

https://www.daxpatterns.com/dynamic-segmentation/#



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

Proud to be a Super User!



Bohumil_Uhrin
Helper II
Helper II

Why top10 by "range"? And not by actual revenue?

There could be many customers, lets say 30, in one range. How would you deal with that? Best is top10 by revenues, I dont see logic behind what youre trying to do.

 

Helpful resources

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