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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Power_MN
Helper I
Helper I

Show specific value from table visual

Hello everybody,

 

I get stuck with one issue.

I have the following table visual.

 

511CA48F-C2D5-4B77-A5B5-9104F1EFC363.jpeg


The "Customers" are taken from the dataset. The "Price" is calculated with a measure that is dependent on a SelectedValue Slicer.

8C16E15E-B6DE-470E-B9A1-D3351863BBC7.jpeg

 

However, only the Price of "Customer A" is changed/ adjusted there.

 

The Rank ist calculated with a measure that uses the value of the "Price".

 

I now need a DAX-command that outputs the Rank of "Customer A" so that I can display it on a card.

 

I've already tried and used the measure for the rank and finally applied a filter to the visual (card). However, this works because the measure calculated the "Rank" only with the "Customer A". "Customer A" is therefore always in first place.

 

Thank you for your help!

Kind regards

Michael

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

// Maybe something like this...

[Customer A Rank] =
var VisibleCustomers =
    CALCULATETABLE(
        DISTINCT( T[Customer] ),
        ALLSELECTED( Customer )
    )
RETURN
    CALCULATE(
        RANKX(
            VisibleCustomers,
            [Price],,
            ASC, DENSE
        ),
        T[Customer] = "A"
    )

View solution in original post

1 REPLY 1
Anonymous
Not applicable

// Maybe something like this...

[Customer A Rank] =
var VisibleCustomers =
    CALCULATETABLE(
        DISTINCT( T[Customer] ),
        ALLSELECTED( Customer )
    )
RETURN
    CALCULATE(
        RANKX(
            VisibleCustomers,
            [Price],,
            ASC, DENSE
        ),
        T[Customer] = "A"
    )

Helpful resources

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