Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
It is a very simple topic, but I can't find the solution, I need to set the days between 2 dates, try "Datediff", but it asks for the dates, but when I write the field, the program does not take it:
I also tried to create a measure in another table that pulls the date that I need, but I couldn't, can someone help me? Thanks
Solved! Go to Solution.
Hi @miguelHG
Are you sure your fields are Date or DateTime fields? I used this formula to test and it works fine:
CalculatedColumn:
Datediff = DATEDIFF('Table'[DocDate],'Table'[DocDueDate],DAY)
And for a measure:
DateDiffMeasure = DATEDIFF(SELECTEDVALUE('Table'[DocDate]),SELECTEDVALUE('Table'[DocDueDate]),DAY)
Result:
Eric.
Hi @miguelHG
Are you sure your fields are Date or DateTime fields? I used this formula to test and it works fine:
CalculatedColumn:
Datediff = DATEDIFF('Table'[DocDate],'Table'[DocDueDate],DAY)
And for a measure:
DateDiffMeasure = DATEDIFF(SELECTEDVALUE('Table'[DocDate]),SELECTEDVALUE('Table'[DocDueDate]),DAY)
Result:
Eric.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
User | Count |
---|---|
91 | |
89 | |
77 | |
69 | |
69 |
User | Count |
---|---|
222 | |
128 | |
117 | |
82 | |
77 |