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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
M_SBS_6
Helper V
Helper V

Return text based on max value

Hi, I have the following measure which returns the max value. 

Max_val = 

Calculate(

Max(test[test_%]),

Test[sum] <> {'live'}).

 

However, withing my multi row card, I get the Max value correctly but against all test[sum]. My fields are test[sum] and max_val.

 

 On my filters for test[sum] I have top 1 by max_val but that doesn't seem to work.

 

Any other ways of presenting this please? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @M_SBS_6 ,
Based on your description, I can't get a good sense of what you mean. According to my understanding, I realized the following steps. Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1706754161869.png

Create a measure

 

Max_val_Text = 
VAR MaxValue = [Max_val]
RETURN
CALCULATE(
    SELECTEDVALUE(test[sum]),
    test[test_%] = MaxValue,
    test[sum] <> "live"
)

 

Put the measure inside the card

vheqmsft_1-1706754480310.png

Or put meaure and [test%] into multi-row card and set the fliter test as TOP 1 and Set the by value as test%

vheqmsft_2-1706754607865.png

vheqmsft_3-1706754615138.png

 

Best regards

Albert He

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @M_SBS_6 ,
Based on your description, I can't get a good sense of what you mean. According to my understanding, I realized the following steps. Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1706754161869.png

Create a measure

 

Max_val_Text = 
VAR MaxValue = [Max_val]
RETURN
CALCULATE(
    SELECTEDVALUE(test[sum]),
    test[test_%] = MaxValue,
    test[sum] <> "live"
)

 

Put the measure inside the card

vheqmsft_1-1706754480310.png

Or put meaure and [test%] into multi-row card and set the fliter test as TOP 1 and Set the by value as test%

vheqmsft_2-1706754607865.png

vheqmsft_3-1706754615138.png

 

Best regards

Albert He

 

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



Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors