Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
PowerBIData
Frequent Visitor

How to get rid of Zero (0) after adding up a column with decimal places

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.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

@PowerBIData 

I suggest using a tabular editor in the Power BI desktop.

The type still remains as a number.

 

Picture1.png

 

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

@PowerBIData 

I suggest using a tabular editor in the Power BI desktop.

The type still remains as a number.

 

Picture1.png

 

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
selimovd
Super User
Super User

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.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.