Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Kindly advise if you're able, I have a decimal column datatype decimal on a Day table as per below example.
Day |
0.5 |
11.0 |
When I add this I get 11.5 which is correct, but when I add 1.0+1.0= 2.0, I would like to get rid of zero if is a whole number
Dax used Total days=sum('day'.[day])+0
Basically, I would like to get rid of 0 if the sum is equal to a whole number. Many thanks.
Solved! Go to Solution.
I suggest using a tabular editor in the Power BI desktop.
The type still remains as a number.
https://www.dropbox.com/s/0q2878rl8amj4n4/powerbidata.pbix?dl=0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
I suggest using a tabular editor in the Power BI desktop.
The type still remains as a number.
https://www.dropbox.com/s/0q2878rl8amj4n4/powerbidata.pbix?dl=0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hey @PowerBIData ,
you can do that with DAX and the FORMAT function.
Check that article on how to do that:
Dynamic scaling of a measure in Power BI with DAX - What the fact.bi
Be aware that FORMAT returns a text. So this measure will work in a table or matrix, but not in other visuals like a bar or line chart.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |