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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SteveIOW
Helper II
Helper II

display text value associated with a calculated value

Good morning,

 

I am totally stuck!

 

I have a table of values for which I have created a measure.

SteveIOW_0-1652455066137.png

 

 

 

what I need to do is to create a new measure such that it returns only the worst performer.

i.e. Measure = "ModalityValue" where Value = Worst(Min) Value".

in the example above I would want it to return "Non-Obstetric Ultrasound".

 

Does anyone have any ideas please?

 

Kind regards

Steve

 

PS the measure value 94K is created from

VariationActAv min per Modality =

MINX(

    KEEPFILTERS(VALUES('Modalities'[Modality])),

    CALCULATE([VariationActAv])

)

 

 

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@SteveIOW 

TOPN(1, VALUES(Modalities[Modality]), [VariationActAv]ASC)
 I guess [VariationActAv] is a measure so we don't need a calculate around it.
In case you only have 1 value it will transform this table result into a scalar value and you could put it in a card visual. In case there is a tie in the 1st place this measure will break. You can wrap it up with CONCATENATEX and decide how you want to present it.


P.S. In the measure you wrote, you don't need KEEPFILTERS on top of VALUES, becasue VALUES already keeping all the filters, and you also didn't need to write calculate as a measure reference already get's an implicit calculate around it.


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

3 REPLIES 3
SpartaBI
Community Champion
Community Champion

@SteveIOW 

TOPN(1, VALUES(Modalities[Modality]), [VariationActAv]ASC)
 I guess [VariationActAv] is a measure so we don't need a calculate around it.
In case you only have 1 value it will transform this table result into a scalar value and you could put it in a card visual. In case there is a tie in the 1st place this measure will break. You can wrap it up with CONCATENATEX and decide how you want to present it.


P.S. In the measure you wrote, you don't need KEEPFILTERS on top of VALUES, becasue VALUES already keeping all the filters, and you also didn't need to write calculate as a measure reference already get's an implicit calculate around it.


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Perfect - thank you so much - and thank you for the tips.

@SteveIOW my pleasure 🙂

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors