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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Dynamic column inputs to visualisations

Hi All, 

 

I've seen how to dynamically display different measures but I'm in need of returning a column of values instead. 


Essentially I have an extremely large database with several hundred columns that I will be connected to with Direct Query. I need to create a dashboard which provides a column summary of descriptive statistics which is easy enough with the dynamic measures using an additional table and the switch formula. However I require some charts such as histograms and pie charts which need to dynamically pass the column in to them rather than a calculated measure. 

 

For instance for the numeric columns I'll need the histogram to show the distribution and update based on the column selected. Or for categorical variables a pie chart to update to show parts of a whole. 


Does anybody have any idea how to do this? 

 

Thanks

3 REPLIES 3
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

Please check if below posts could help.

https://www.kasperonbi.com/dynamically-switching-axis-on-visuals-with-power-bi/

https://community.powerbi.com/t5/Desktop/Dynamic-change-in-X-Axis/td-p/86167

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks for the response @v-cherch-msft .

 

I'm not sure this is entirely the solution I'm looking for as it maintains the dependent variable and just changes how it is sliced. What I'm aiming to do is completely change the dependent variable that is displayed. 

 

For example imagine I have a histogram to plot the distribution of a variable (column) and then wanted to change the variable/column displayed in the histogram. 

Hi @Anonymous 

Not fully understand it.Please check if below post could help.

https://community.powerbi.com/t5/Desktop/Slicer-and-switch-selection/m-p/630595#M301460

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.