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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.