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
qmest
Frequent Visitor

Units in chart with dynamic measure

Hi,

 

I've created a line chart that shows a value per year. This value is dynamic and is obtained from a switch statement, in which the user selects a value from a dropdown slicer and the measure adjusts accordingly. This works as intended but the units in the chart, although set to "Auto" do not change. Since this measure can represent percentages or absolute numbers is there a way to have the units change as the user selects the dynamic measure?

 

Thanks.

3 REPLIES 3
v-yetao1-msft
Community Support
Community Support

Hi @qmest 

Maybe you can achieve dynamic formatting using Format in below way. I found a similar case , you can refer to it .

https://community.powerbi.com/t5/Desktop/Display-unit-for-dynamic-measure/m-p/794800

 

Best Regard

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

qmest
Frequent Visitor

Hi,

 

I'm not sure how this applies to what i'm trying to do? Is there some sort of example that you can provide?

 

Thanks.

amitchandak
Super User
Super User

@qmest , for that you have to use calculation group, if you format the measure then if will become a text measure

 

calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

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.