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.

View solution in original post

amitchandak
Super User
Super User

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors