Forum Discussion

JTan's avatar
JTan
New Member
2 years ago
Solved

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:

 

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.

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

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

 

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

8 Replies

  • Anonymous's avatar
    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!

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

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

    • JTan's avatar
      JTan
      New Member

      Thank you! Please see my new reply.