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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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.










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


Proud to be a Super User!









"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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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