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
vinay_naran
Frequent Visitor

Cards - Display OUT Or NOTOUT in Cricket Application

Dear Friends,

I am novice to Power BI and try to use CARDS with Player Highest Run and want to show if batter is OUT or NOTOUT (with *).

Its working fine in charts, but same logic/measure does not work in Cards.

Any Idea?

Please see Images and below Measures.

_Label_Display = if(SELECTEDVALUE(Sheet1[Out OR NotOut])="N","*","")

 
_Label_Out_Notout_For_Chart = [_Runs] & [_Label_Display]   Note: This working OK. 
 
_Label_Out_Notout_For_Cards = [_Max_Run] & [_Label_Display]    Note:Not working
 
Hope this helps!
 
Regards
Vinay
Data FileData FileCards Does not show * (Not Out)Cards Does not show * (Not Out)
1 ACCEPTED SOLUTION

Hi @vinay_naran - Please check the below  measure:

_Max_Run_With_Label =
VAR MaxRun = MAX(crick[Runs])
VAR IsNotOut =
    CALCULATE(
        MAX(crick[Out OR NotOut]),
        FILTER(crick, crick[Runs] = MaxRun)
    ) = "N"
RETURN
    IF(IsNotOut, MaxRun & "*", MaxRun)

 

rajendraongole1_0-1724842664077.png

 

 

This helps.





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

Proud to be a Super User!





View solution in original post

4 REPLIES 4
vinay_naran
Frequent Visitor

Hi @rajendraongole1 ,

 

Yes, that work like charm. 

Thanks you so much.

Regards

Vinay

 

rajendraongole1
Super User
Super User

Hi @vinay_naran -Create a measure that calculates the maximum run and appends the * for "Not Out" directly within the same measure.

_Max_Run_With_Label =
VAR MaxRun = MAX(Sheet1[Runs])
VAR IsNotOut = SELECTEDVALUE(Sheet1[Out OR NotOut]) = "N"
RETURN
MaxRun & IF(IsNotOut, "*", "")

 

you can use this measure in your card vis.using this measure in your card, you should be able to achieve the desired output

 

Hope this helps.





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

Proud to be a Super User!





Hi @rajendraongole1 , 

I have tried with your measure but it NOT working in CARD. See Image below.

Not working.JPG

 

Thanks

Vinay

 

Hi @vinay_naran - Please check the below  measure:

_Max_Run_With_Label =
VAR MaxRun = MAX(crick[Runs])
VAR IsNotOut =
    CALCULATE(
        MAX(crick[Out OR NotOut]),
        FILTER(crick, crick[Runs] = MaxRun)
    ) = "N"
RETURN
    IF(IsNotOut, MaxRun & "*", MaxRun)

 

rajendraongole1_0-1724842664077.png

 

 

This helps.





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

Proud to be a Super User!





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.