Forum Discussion
Can't plot decimal number data type column to Y axis
Issue with Creating a Bar Chart in Fabric
I have a simple table with the following data:
Brand Sales
| A | 244,000 |
| B | 150,000 |
| C | 550,000 |
I changed the data type of the Sales column to Decimal Number in the semantic model. However, when I try to create a bar chart, I can drag and drop Brand onto the X-axis, but I cannot drag and drop Sales onto the Y-axis.
Does anyone know why this might be happening and how I can resolve it? Any help would be greatly appreciated!
hi gori137 To fix the issue:
-
Set Summarization: Go to the Sales column in the Model view. Set Summarization to "Sum" (or another aggregation).
-
Check Chart Settings: Drag Sales to the Y-axis and ensure "Sum" or a valid aggregation is selected.
This ensures Sales is treated as a measure and can be plotted.
-
Hi gori137 ,
Although you set the data type to Decimal Number, there might be inconsistencies in the semantic model or data load process that prevent Power BI from recognizing it as a numerical field.
Check this -
Go to Model view in Power BI.
Check the Data Type and ensure it’s correctly set to Decimal Number.
If it’s correct, refresh the dataset in Power BI Desktop or Fabric and try again.
Thanks,
Sai Teja
Hi gori137 ,
Thank you for reaching out to us on the Microsoft Fabric Community Forum.
As rohit1991 mentioned, try to check the chart settings, drag the "Sales" field to the Y-axis of the chart. Choose "Sum" or another suitable aggregation method from the available options.
It worked for me. Here is the screenshot for better understanding:
If this post was helpful, please give us Kudos and consider marking Accept as solution to assist other members in finding it more easily.
6 Replies
- rohit1991
Super User
hi gori137 To fix the issue:
-
Set Summarization: Go to the Sales column in the Model view. Set Summarization to "Sum" (or another aggregation).
-
Check Chart Settings: Drag Sales to the Y-axis and ensure "Sum" or a valid aggregation is selected.
This ensures Sales is treated as a measure and can be plotted.
-
- SaiTejaTalasila
Super User
Hi gori137 ,
Although you set the data type to Decimal Number, there might be inconsistencies in the semantic model or data load process that prevent Power BI from recognizing it as a numerical field.
Check this -
Go to Model view in Power BI.
Check the Data Type and ensure it’s correctly set to Decimal Number.
If it’s correct, refresh the dataset in Power BI Desktop or Fabric and try again.
Thanks,
Sai Teja
- v-menakakota
Community Support
Hi gori137 ,
Thank you for reaching out to us on the Microsoft Fabric Community Forum.
As rohit1991 mentioned, try to check the chart settings, drag the "Sales" field to the Y-axis of the chart. Choose "Sum" or another suitable aggregation method from the available options.
It worked for me. Here is the screenshot for better understanding:
If this post was helpful, please give us Kudos and consider marking Accept as solution to assist other members in finding it more easily.- v-menakakota
Community Support
Hi gori137 ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.- v-menakakota
Community Support
Hi gori137 ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.Regards,
Menaka.