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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Brady_S
New Member

Dynamic card Title change by clicking on a date and time in the x axis of my chart

I have a line and clustered column chart to show spoilage on a vision system.  This hourly chart covers 7 days and I have 2 crads one shows infeed total for 7 days and one shows spoilage for 7 days.  If i click on a date/hour on my x axis of this chart my cards show the values for that hour but how would I get the name on that card to dynamically change to show infeed total and spoilage total for that hour instead of still saying Last 7 days?

Brady_S_0-1707406053431.pngBrady_S_1-1707406074951.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Brady_S , In the new card visual, you can use the label of your choice , You use a measure, example below. Make sure Under callout value - > Apply Value -> a measure is selected

 

Label =
var _top = maxx(INDEX(1, ALLSELECTED('Item'[Category]), ORDERBY(CALCULATE([Net],REMOVEFILTERS('Item'[Brand])), DESC)),[Category])
RETURN
if(MAX('Item'[Category])= _top, [Net], BLANK())

 

amitchandak_0-1707407595794.png

 

Power BI: New Card Visual: https://youtu.be/CqpPuawbYXs

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Brady_S , In the new card visual, you can use the label of your choice , You use a measure, example below. Make sure Under callout value - > Apply Value -> a measure is selected

 

Label =
var _top = maxx(INDEX(1, ALLSELECTED('Item'[Category]), ORDERBY(CALCULATE([Net],REMOVEFILTERS('Item'[Brand])), DESC)),[Category])
RETURN
if(MAX('Item'[Category])= _top, [Net], BLANK())

 

amitchandak_0-1707407595794.png

 

Power BI: New Card Visual: https://youtu.be/CqpPuawbYXs

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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