cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

roundup and rounddown

Hello together,

 

I´ve got a table with turnaround times (e.g. 0,001 days, 3,247 days...). Is it possible with a measure to say that everything under 1 day should be round up to 1 and the rest should be round up when it is over ... ,500 and round down when it is under ... ,500 ?

 

Thanks in advance!

 

Greetings

1 ACCEPTED SOLUTION

Accepted Solutions
mitsu Member
Member

Re: roundup and rounddown

Following should work .

 

 if([Total TAT - Creation to Shipping]<1,ROUNDUP([Total TAT - Creation to Shipping],0),ROUND([Total TAT - Creation to Shipping],0))

 

 

Please do try the same .

 

 

Thanks,

Mitsu

View solution in original post

3 REPLIES 3

Re: roundup and rounddown

I thought that I can do it like that:

 

= IF('CCCE WSPs'[Total TAT - Creation to Shipping] <1;1;IF('CCCE WSPs'[Total TAT - Creation to Shipping]>,500;ROUNDUP('CCCE WSPs'[Total TAT - Creation to Shipping];0);ROUNDDOWN('CCCE WSPs'[Total TAT - Creation to Shipping];0)))

 

So everything under 1 day is now excactly 1 day, but the problem is that Power BI rounds everything up now instead of runding down the values under ... ,50

mitsu Member
Member

Re: roundup and rounddown

Following should work .

 

 if([Total TAT - Creation to Shipping]<1,ROUNDUP([Total TAT - Creation to Shipping],0),ROUND([Total TAT - Creation to Shipping],0))

 

 

Please do try the same .

 

 

Thanks,

Mitsu

View solution in original post

Highlighted

Re: roundup and rounddown

Hello @mitsu,

 

that works perfectly now.

 

Thank you for your fast help!

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 101 members 1,519 guests
Please welcome our newest community members: