Forum Discussion
Date difference between measure and table column
- 5 years ago
Anonymous , change measure like and change its data type to date
Measure = IF(CALCULATE(COUNTROWS(SampleData),FILTER(SampleData,SampleData[Job Completion Date]=BLANK())) > 0, blank(), MAX(SampleData[Job Completion Date]))
Anonymous , You can get it like this
datediff(max(G6_SampleData[Started Date]), [Measure], DAY)
But you have force a row context using summarize or values example //assume JOB ID
Sumx(values(G6_SampleData[JOB ID]), datediff(max(G6_SampleData[Started Date]), [Measure], DAY))
Averagex(values(G6_SampleData[JOB ID]), datediff(max(G6_SampleData[Started Date]), [Measure], DAY))
refer
- Anonymous5 years agoNot applicable
Thanks Amit,
But when I use your provided DAX formula it gives me an error that cannot convert string to Date.
Even if use format it gives me the same error.