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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.