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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors