Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
How would in DAX calculate the number of days between 2 date columns
Wanted outcome (format: whole number): 2
Note: some Colum2 will be blank - here I would like a blank cell as outcome as well
Solved! Go to Solution.
Hi,
It seems this will work:
= IFERROR
(DATEDIFF(
table[column1],
table[column2],
DAY),
BLANK())
Wont work,
I alsso tried:
DATEDIFF
MIN( table[column1]),
MAX( table[column2]),
DAY)
@Anonymous , That is the measure .Hope your date setting is correct
Can you share a sample pbix after removing sensitive data.
Hi,
It seems the your link is about the date format and a slicer,
What i need is the date difference in days from 2 columns already formatted as date - as a DAX formula,
Hi,
It seems this will work:
= IFERROR
(DATEDIFF(
table[column1],
table[column2],
DAY),
BLANK())
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.