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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
djreyes
Helper I
Helper I

roundup of dateiff

Hi, 

Please help - how can I add roundup in this - DATEDIFF(Clean[shipmentDate],Clean[Scan Event Date],DAY)

I am getting an error when I tried to add Roundup(DATEDIFF(Clean[shipmentDate],Clean[Scan Event Date],DAY))

 

Thank you for your help!

3 REPLIES 3
Greg_Deckler
Super User
Super User

@djreyes Roundup(DATEDIFF(Clean[shipmentDate],Clean[Scan Event Date],DAY),0)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

I think I am doing something wrong, in my fields I changed from sum to average. I did add your what you said and its still showing decimal places. Capture.JPG

Hi @djreyes 

@Greg_Deckler's formula is correct but you seem to be using it the wrong way. Average of whole numbers can still return decimals unless you make the average itself roundup or down to the nearest whole number.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors