The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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!
Solved! Go to Solution.
Hi @JTan
Sorry, my previous reply was going in the wrong direction. I checked the official document, this was caused by the following limitation:
Due to above limitation, you need to create a measure for each field column. For example,
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
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.
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:
Hi @JTan
Sorry, my previous reply was going in the wrong direction. I checked the official document, this was caused by the following limitation:
Due to above limitation, you need to create a measure for each field column. For example,
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
Thank you as well!
Hi @JTan
is the wanted measure Co2 reduction a number data type?
if yes can you please share a link to the dummy pbix?
Thank you! Please see my new reply.
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
46 |