cancel
Showing results for 
Search instead for 
Did you mean: 
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
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.