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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
ArtRijnvicus
New Member

DATEDIFF measure does not show date colum

Hello all,

I want to calculate the week differences between a datecolum (deelnemers[AanvangStatus] and todays date. I want to do this by a Measure.

The DAX formula im using is: DATEDIFF(...

the date i want to use in Date1 = deelnemers[AanvangStatus], but as you can see (in printscreens below), its only allowing me to use measured values from table deelnemers (which are no date colums?!).

 

How can I use deelnemers[AanvangStatus] colum in the DATEDIFF measure? (or what am i doing wrong?)

 

Greetings,

Art

 

ArtRijnvicus_2-1663582085031.png

 

 

 

ArtRijnvicus_1-1663581988919.png

 

 

 

 

 

 

ArtRijnvicus_1-1663580914987.png

 

1 ACCEPTED SOLUTION
JorgePinho
Solution Sage
Solution Sage

You have tu use a summarization function  such as MAX.

Try this:

 

Diff = DATEDIFF(MAX(Date1), TODAY(), WEEK)

View solution in original post

1 REPLY 1
JorgePinho
Solution Sage
Solution Sage

You have tu use a summarization function  such as MAX.

Try this:

 

Diff = DATEDIFF(MAX(Date1), TODAY(), WEEK)

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 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.

October NL Carousel

Fabric Community Update - October 2024

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