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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Dynamic Y-axis not working on a stacked column chart

Hi all, a newbie here. I have a chemical dataset. Dataset is composed of different experiments (FormID) and monitoring of impurities (ImC, Delta, Total)  accumulation over time (0, 7, 14, etc) on different temperatures (25 and 40).

 

I have it all working for a separate impurity (see tab "noField" in the shared file). But I want to have a dynamic Y-axis where I will be able to select which impurity I want to look at. For example, in the "noField" tab, on the Y-axis is Average of ImC. I can make another identical plot with Delta or Total on the Y axis, but I wan to have it changed dynamically since in real life there are many impurities that are measured.  In the tab "FieldNotWorking", I created New Field using ImC, Delta and Total (and called it Impurity), then I placed that newly created Field on the Y-axis, but then it is not working. See the attempt that does not work in the tab "FieldNotWorking".

 

I  am not sure why this is he case and I lost many day and was not sucessful. I do apologize if the answer exist somewhere, I just was not able to locate it and I looked a lot.

 

Link to pbix file 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , first create measures

 

ImC Measure= Sum('a_test'[ImC] )

Total Measure= Sum('a_test'[Total] )

 

Delta Measure= Sum('a_test'[Delta] )

Now create field parameters on these three measures and use

 

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9afd
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE
Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f
Field Parameters- Conditional Formatting
: https://amitchandak.medium.com/field-parameters-conditional-formatting-517aacc23fdf
Power BI Field Parameters, Keep Axis Sort intact| Always Sort on X/Categorial Axis: https://youtu.be/GfBrB6czByw

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

It is working, many thanks for reading my post and providing correct and prompt answer. 

amitchandak
Super User
Super User

@Anonymous , first create measures

 

ImC Measure= Sum('a_test'[ImC] )

Total Measure= Sum('a_test'[Total] )

 

Delta Measure= Sum('a_test'[Delta] )

Now create field parameters on these three measures and use

 

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9afd
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE
Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f
Field Parameters- Conditional Formatting
: https://amitchandak.medium.com/field-parameters-conditional-formatting-517aacc23fdf
Power BI Field Parameters, Keep Axis Sort intact| Always Sort on X/Categorial Axis: https://youtu.be/GfBrB6czByw

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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