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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors