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
RSSILVA_22
Helper I
Helper I

Dynamic Top N chart with conditional formatting in a Top N table

Hello.

I have a test file in pbix and I'm trying to do the same with it as I see in this model:

https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/2021-W37/td-p/3760779

 

Can anyone do the same and repost the file so that I can analyze and learn how it was done?

Thank you.

 

Community_challenge.pbix 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RSSILVA_22 ,

First of all, I found that I can not open your .pbix file. Can you change the way to upload the file? Such as sharepoint and so on.

I create a simple example below. Firstly I create a table.

vyilongmsft_0-1712806389616.png

Then I create two measures.

 

Measure =
VAR _Slicer =
    MINX ( ALLSELECTED ( 'Table 2' ), 'Table 2'[Number] )
RETURN
    IF (
        MAX ( 'Table'[Number] ) >= _Slicer,
        UNICHAR ( 128308 ),
        UNICHAR ( 128309 )
    )
Measure 2 =
VAR _Slicer =
    MINX ( ALLSELECTED ( 'Table 2' ), 'Table 2'[Number] )
RETURN
    SUMX ( FILTER ( 'Table', 'Table'[Number] < _Slicer ), 'Table'[Sales] )

 

vyilongmsft_1-1712806664659.png

 

 

 

Best Regards

Yilong Zhou

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
Anonymous
Not applicable

Hi @RSSILVA_22 ,

First of all, I found that I can not open your .pbix file. Can you change the way to upload the file? Such as sharepoint and so on.

I create a simple example below. Firstly I create a table.

vyilongmsft_0-1712806389616.png

Then I create two measures.

 

Measure =
VAR _Slicer =
    MINX ( ALLSELECTED ( 'Table 2' ), 'Table 2'[Number] )
RETURN
    IF (
        MAX ( 'Table'[Number] ) >= _Slicer,
        UNICHAR ( 128308 ),
        UNICHAR ( 128309 )
    )
Measure 2 =
VAR _Slicer =
    MINX ( ALLSELECTED ( 'Table 2' ), 'Table 2'[Number] )
RETURN
    SUMX ( FILTER ( 'Table', 'Table'[Number] < _Slicer ), 'Table'[Sales] )

 

vyilongmsft_1-1712806664659.png

 

 

 

Best Regards

Yilong Zhou

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

tanks

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.