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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Scotteh
New Member

Rounding Numbers Help

Hi Everyone,

 

I've only recently started using PowerBI, but was hoping the community could help. I've looked at previous posts on rounding but they seem overly complex for what I want to achieve. I have newly created view with 'Days' which is giving me the difference between certain fields. Unfortunately the end result shows me 3 decimal places after the Day, which I'd like to round up.

 

Is there an easy way to do this?

 

 

Days =

VAR HS = 'Transition Time'[Date End Change] - 'Transition Time'[Source Status Change Date]
VAR CS = TODAY() - 'Transition Time'[Date End Change]

RETURN
IF(ISBLANK('Transition Time'[Source Status Change Date]),CS,HS)
 
The Days is not part of the underlying tables, it is created from the above queries.
 
PowerBI Issue.JPG
 

TIA,

 

Scott

 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

use round

 

round(IF(ISBLANK('Transition Time'[Source Status Change Date]),CS,HS),0)

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

use round

 

round(IF(ISBLANK('Transition Time'[Source Status Change Date]),CS,HS),0)

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

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

Hi amitchandak,

 

Thanks, that definitely round it. Is there now a simple way to remove the 4 decimal places?

 

e.g. 929.0000 to 929?

 

Sorry, I should have stated that originally also.

 

 

Scott

Nevermind, I have found it in the modelling tab!

 

Thank you for your help.

 

Scott

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors