Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi there,
I have a source which has a cut length value which is set as a decimal value (example below)
When this data gets added to a table visualisation in Power BI, the values are being shown as 0?
Solved! Go to Solution.
Changing my column values from a Measure to a Column has solved the issue - thanks for the replies.
Changing my column values from a Measure to a Column has solved the issue - thanks for the replies.
I am glad to help you.
According to your description, actually you want to why the data gets added to a table visualisation in Power BI, the values are being shown as 0?
If I understand you correctly, then you can refer to my solution.
Actually, you didn't provide the appropriate test data, so I assumed something myself.
By testing, I'm guessing that the reason your data turned out to be 0 is that your column of data may be a Measure, and the calculation of the Measure uses round(), which is set to retain only one place when retaining decimal places.
You can check this by looking at the formula for the Measure and then changing the number of digits retained after the decimal point.
Here are my test results:
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi - thank you for the reply
My column is not a measure - it is a column within the sample spreadsheet.
So within the sample.xls (as the source) the column has a value like 0.33 but when this column is added to a table visualisation in Power BI it is being shown as 0
@BarryFletcher alright, you need to change data type in power query by adding a new step in power query. Go to Transformation tab and change the data type of Cut Length (M) column.
I don't have acces to the data source thats why i'm, getting error. Right click on column and change data type to Decimal.
Hope it works.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Yes, it's worked.
@BarryFletcher access required to download your sample files, please accept the access request.
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
42 |
User | Count |
---|---|
106 | |
50 | |
49 | |
40 | |
40 |