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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
AEdmonds1990
Frequent Visitor

How to format numbers with different length decimal places. Or how to remove ".00"

Hello,

 

I have data of mainly whole numbers but with some quarters and halves:

 

1

2

4

19

2

3

1

1.5

8

3

1

1.25

 

The column containing this data has data type "Decimal Number" in the data view, and format type "General". Now in the data view this looks fine, however in my Reports it looks like:

 

1.00

2.00

1.50

1.25

etc.

 

This is annoying seeing as most of my numbers are whole numbers. Is there any way I can have this in the Report looking like the first like? This is how the numbers look in the Data View but not in the Report View which is annoying, and it feels like this should be a simply operation.

 

I have searched the web. I have found you can do it if you format the data as Text, but then this prevent me from doing any kind of conditional formatting on the values.

 

I also tried inserting a new column with a DAX statement to round the number to 0 decimal places if it is an integer. Again, it looks good in the data view, but in the report it still shows ".00" on most of my data.

3 REPLIES 3
amitchandak
Super User
Super User

@AEdmonds1990 , In column/measure tool there is an option for format

write the format there

 

#.00

 

Data Format New Rib.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

Yes in format I can either:

 

A) Format as "General"

 

This shows the numbers correct in Data View, but in the Report every number still has two decimal places.

 

B) Format as "Decimal number" with two decimal places

 

Doing this shows both the numbers in the Data View and Report as having two decimal places.

 

As far as I can see, no format option for a variable number of decimal places.

The box that says "General" is a free text box, you can type the format code in there and Power BI will use it.

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.