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

Is there a way I can change the key variable on a dashboard?

Hi,

 

I am running a dashboard with multiple visualisations looking at revenue. e.g. revenue by state, revenue by territory, revenue by product.

 

I would also like to run an identical dashboard but against quantity e.g. quantity by state, quantity by territory, quantity by product.

 

Is there any way I can run them off a single dashboard, using a slicer or table? Or maybe by use of a field with revenue and qty in it which I can use to switch between the two variables?

 

Regards

 

darliusk

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @darliusk ,

 

Please check if this blog could help you: Dynamic EVERYTHING (measures, axis, legend, titles... - Microsoft Power BI Community.

 

This solution shows layered dynamic DAX measures, i.e. how one chart can show different values, in different time frames, different scale. Report also shows how a slicer can be used to dynamically change axis and legend. Report has dynamic title and switch for chart types.

 

 

Best Regards,

Icey

 

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

3 REPLIES 3
darliusk
Frequent Visitor

Thanks @amitchandak , it works to a degree, with simple line graph visualisations changing with no issues.

 

However, when I try to use it on pie graphs, only the values change and with stacked bar charts, nothing happens.

Any follow-up suggestions?

What I saw was the following:

Revenue measure:

darliusk_0-1637624612457.png

By Quantity Measure

darliusk_1-1637624693293.png

 

Icey
Community Support
Community Support

Hi @darliusk ,

 

Please check if this blog could help you: Dynamic EVERYTHING (measures, axis, legend, titles... - Microsoft Power BI Community.

 

This solution shows layered dynamic DAX measures, i.e. how one chart can show different values, in different time frames, different scale. Report also shows how a slicer can be used to dynamically change axis and legend. Report has dynamic title and switch for chart types.

 

 

Best Regards,

Icey

 

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

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.