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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JTan
New Member

How to plot a column chart with fixed x and dynamic y axies

Hi PBI gurus,

 

I am using PBI to plot a column chart, like the one shown below:

JTan_1-1706721710189.png

 

I want to use all state names of the US as x-axis, and I use "New parameter" -> "Fields" to create a slicer to contain the field names I want to plot as y-axis, so that I can select to plot the data from either field vs. States.

JTan_0-1706721668414.png

However, when I make "X-axis" as "State", and "Y-axis" as the parameter fields I created, the column chart shows nothing, shown below:

JTan_2-1706721912672.png

But when I change column chart to a table, it displays correct values:

JTan_3-1706721959587.png

 

Please let me know how I can plot column chart as expected. Thanks a lot!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @JTan 

 

Sorry, my previous reply was going in the wrong direction. I checked the official document, this was caused by the following limitation: 

  • You can't use implicit measures, so if you need an aggregated column as one of your fields, you need to create an explicit DAX measure for it. For more information, see implicit vs. explicit measures.

 

Due to above limitation, you need to create a measure for each field column. For example, 

 

# Cost Savings = SUM('#BaseLine'[Cost Savings])
# Energy Savings = SUM('#BaseLine'[Energy Savings])
............
 
Then use these measures in the field paramter. 
vjingzhanmsft_0-1706773589824.pngvjingzhanmsft_1-1706773609445.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @JTan 

 

Column chart visual expects to have numeric data type column/measure on the y-axis. Please check whether all fields used in the field parameter have been set to numeric data types, like whole number, decimal number, fixed decimal number...

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Thank you!

I made all the fields correct type.

Here is how I defiend the dynamic parameters in the "Baseline COM Columns" slicer. The items are actually in text type, not in number.

JTan_0-1706762368195.png

Now my question is, how to link my selected item in the "Baseline COM Columns" slicer to the real data column in a data table?

The data table is like this:

JTan_1-1706762645440.png

Anonymous
Not applicable

Hi @JTan 

 

Sorry, my previous reply was going in the wrong direction. I checked the official document, this was caused by the following limitation: 

  • You can't use implicit measures, so if you need an aggregated column as one of your fields, you need to create an explicit DAX measure for it. For more information, see implicit vs. explicit measures.

 

Due to above limitation, you need to create a measure for each field column. For example, 

 

# Cost Savings = SUM('#BaseLine'[Cost Savings])
# Energy Savings = SUM('#BaseLine'[Energy Savings])
............
 
Then use these measures in the field paramter. 
vjingzhanmsft_0-1706773589824.pngvjingzhanmsft_1-1706773609445.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Thank you so much for the help!

I've solved this problem.

Hi @JTan 
The parameters names as a text that's ok, 
If all the referenced columns are whole/decimal number type and it still doesn't work ,
then maybe we are missing something in your description.

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thank you as well!

Ritaf1983
Super User
Super User

Hi @JTan 
is the wanted measure Co2 reduction a number data type?

Ritaf1983_0-1706722429690.png

if yes can you please share a link to the dummy pbix?

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thank you! Please see my new reply.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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