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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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.

amitchandak
Super User
Super User

@darliusk , Seem like you are looking for a measure slicer

measure slicer
https://www.youtube.com/watch?v=b9352Vxuj-M
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors