Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi there,
I have created a dynamic measure that will give me results based on the slicer selected. The measure is working as suspected, but I would like the legend to also change based on what is selected on the slicer
Formula
DynamicMeasure =
SWITCH(
SELECTEDVALUE('vCorporateGandA'[LedgerType]),
"Actual", [Current Month Actual],
"Budget", [Current Month Budget],
BLANK()
)
Chart:
The slicer is on "Budget" so I would like the yellow bar to show "Budget" instead of "DynamicMeasure"
Hi @brittanyruffin ,
It is not possible to add a measure as bar chat legend, as measure actually returns a single value.
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
try using field parameters .
https://www.youtube.com/watch?v=-nqEv2YXLsUe
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅!
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
I will have 3 different charts that need to filter at the same time. I have 2 other charts for QTD and YTD. The field parameters didn't work for me
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.