Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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
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
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 49 | |
| 37 | |
| 30 | |
| 30 |