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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Chaimaazyani
New Member

Data cleaning remove 0 from decimal values X.0

Hi, could you please help me remove 0 in decimal number here? 

 

ex: ( 68.0 should be 68 and keep 75.4 as it is

 

Thank you!

 

Chaimaazyani_0-1729759138123.png

 

1 ACCEPTED SOLUTION
Chaimaazyani
New Member

Solved using custom format Strings

View solution in original post

7 REPLIES 7
Chaimaazyani
New Member

Solved using custom format Strings

Kedar_Pande
Super User
Super User

@Chaimaazyani 
Calculated Column:

FormattedNumber = 
IF(
MOD('YourTable'[YourColumn], 1) = 0,
FORMAT('YourTable'[YourColumn], "0"),
FORMAT('YourTable'[YourColumn], "0.0")
)

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

 

Doesn't work. Same result

shafiz_p
Super User
Super User

Hi @Chaimaazyani  Select visual and go to data label in format section, go to value and place decimal places to 0. See images below:

shafiz_p_0-1729760111319.png

Hope this helps!!

If this solved your problem, please accept it as a solution!!

 

Best Regards,
Shahariar Hafiz

Doesn't work

amitchandak
Super User
Super User

@Chaimaazyani , Try a format Like

###.##% and check

 

or dynamic format in measure/column tools

amitchandak_0-1729760006055.png

 

 

"##.##%;-##.##%;##.##%"
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Doesn't work

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.