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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Dynamically change the Y-axis units based on a Measure/Slicer Selection

Hi all,

Is there a way to change the units & title of an axis? 

For example when I have Quantity show the value and when I have Sales show sales and $ sign on the values. Some context, I have two cateories bikes and cars and I have created a measure that switches the values. On a table this works fine but not on a bar chart.

Any help?

 

 

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

Hi, @Anonymous 

May I ask if your problem has been solved? Is the above post helpful to you?
As far as I know, the calculation group should be able to help you.
Here is an introduction to calculation groups.
https://apexinsights.net/blog/10-uses-for-calculation-groups

You can also see my idea about switching axes in the following thread.
https://community.powerbi.com/t5/Desktop/help-with-dax-calculation-on-which-date-column-to-use/m-p/2136599#M788875

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

May I ask if your problem has been solved? Is the above post helpful to you?
As far as I know, the calculation group should be able to help you.
Here is an introduction to calculation groups.
https://apexinsights.net/blog/10-uses-for-calculation-groups

You can also see my idea about switching axes in the following thread.
https://community.powerbi.com/t5/Desktop/help-with-dax-calculation-on-which-date-column-to-use/m-p/2136599#M788875

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

amitchandak
Super User
Super User

@Anonymous , for that you might have to use the calculation group. There you can have format for each measure

 

https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallproducts-allversions#limitations

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.