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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
szrirem
Regular Visitor

showing max value and label on card

Hello everyone,

 

I am trying to show max value and max value label on card. I did a visualization like below. 

 

tree map.PNG

I want to print the maximum number of 541 in this visualization and its label on card. I wrote a formula like below to get 541. But the label is wrong.

 

Measure =
 MAXX(
    KEEPFILTERS(VALUES('Yol Izin Belge Sayisi'[Belgeyi Veren Birim])),
    CALCULATE([Toplam Yol İzin Belgesi Alan Kişi Sayısı])
)
number.PNG
 
 
 
 
 
with these code I calculated 542 but I couldnt display true label. The label has to be Mersin 
 
How can I do this ?
 
Thank you in advance 
2 REPLIES 2
Arul
Super User
Super User

@szrirem ,

modify and try this measure based on you data,

Max sales by segment = 
VAR _maxX = MAXX(
    VALUES(financials[Segment]),
    CALCULATE([Sum of Sales]))
VAR _tempTable = 
SUMMARIZE(
    financials,
    financials[Segment],"@Sales",SUM(financials[ Sales])
)
VAR _result =  CALCULATE(
    SELECTEDVALUE(financials[Segment]),FILTER(_tempTable,[@Sales] = _maxX))
RETURN _result

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


Idrissshatila
Super User
Super User

Hello @szrirem ,

 

Try adding the measure you made along with the dimension you're using in a multi-row card.

 

Idrissshatila_0-1676983431489.png

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors