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
Dayna
Helper V
Helper V

Unable to use measure for chart legend

Hello,

 

I suspect it's the measure context that means this isn't working, but I'm trying to add this measure to a chart as the legend but every time I drag it to this field, it doesn't stick / apply.

 

Here's the measure:

Last Process = CALCULATE(MAX(Processes[Name]), FILTER(Processes, Processes[Ordering] = MAX(Processes[Ordering])))

 

It's a measure to get the latest process name based on the 'Ordering' field, so when added to a table of items, it shows the latest value within the process.

 

I think the measure might need to be different, perhaps a virtual table which the chart then uses, but I'm not sure.

 

Hopefully the above makes sense and this is something you can assist me with.

 

Many thanks,

Dayna

1 ACCEPTED SOLUTION
v-binbinyu-msft
Community Support
Community Support

Hi @Dayna ,

It is not possible to add a measure as chart legend, as measure actually returns a single value. We can only add a column into legend section.

In your scenario, I would suggest you to add a card visual with your measure.

 

Best regards,
Community Support Team_ Binbin Yu
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

2 REPLIES 2
v-binbinyu-msft
Community Support
Community Support

Hi @Dayna ,

It is not possible to add a measure as chart legend, as measure actually returns a single value. We can only add a column into legend section.

In your scenario, I would suggest you to add a card visual with your measure.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Unfortunately that won't really meet my needs, as it's going against a pie chart - thanks anyway. 

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.