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.
I'm working with a 30,60,90 day filter. I want to calculate days between today and 'Task Next Milestone Due Date'. I tried DATEDIFF but it didn't work in my equation. My equation is below:
Hi @Anonymous ,
Would you please refer to the following measure:
Days Pending =
VAR _duedate =
SELECTEDVALUE (
'Days Pending'[Days Pending],
MAX ( 'Days Pending'[Days Pending] )
)
+ MAX ( 'Table'[Date] )
RETURN
DATEDIFF ( TODAY (), _duedate, DAY )
For more details, please refer to the pbix file: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EXPAL7FZtyhIrUpig3P3LroBYtrHtTjQfeK_IxnecEUoNQ?e=gGJjDZ
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
@Anonymous ,
Have you tried
a column
datediff(Today(),'Table'[Task Next Milestone Due Date], day())
Measure
datediff(Today(),max('Table'[Task Next Milestone Due Date]), day())
Tried this option but it did not work.
Hi @Anonymous ,
In your formula , you are calculating MAX('Table'[Task Next Milestone Due Date]) for Days Pending, so the date type of Days Pending would be same as [Task Next Milestone Due Date], and you already have [Days Pending] in 'Days Pending' table. So what you want to implement with your formula doesn't seem to have anything to do with what you call the measure(or column).
Would you please show us some sample data and your expected output or your error with use of datediff? Then we will help you more correctly.
Thanks for your understanding and support.
Best Regards,
Dedmon Dai
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
84 | |
65 | |
62 | |
55 |
User | Count |
---|---|
171 | |
109 | |
105 | |
73 | |
71 |