cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors