Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Good day,
How to calculate with Measure only lead time between dates in days.
Tried with
SUMX (Backlog, DATEDIFF (Backlog [Requested Ship Date], Backlog [Scheduled Ship Date], DAY))
The issue is that in this case, the Requested ship date can be equal to or earlier than the Scheduled Ship date.
Thanks
Solved! Go to Solution.
@NDG Sometimes simple subtraction is better:
SUMX (Backlog, (Backlog [Requested Ship Date] - Backlog [Scheduled Ship Date]) * 1.))
@NDG Sometimes simple subtraction is better:
SUMX (Backlog, (Backlog [Requested Ship Date] - Backlog [Scheduled Ship Date]) * 1.))
Thanks!! Works fine.
Apologies syntax was wrong:
DATEDIFF ( SELECTEDVALUE ( Backlog [Requested Ship Date] ), SELECTEDVALUE ( Backlog [Scheduled Ship Date] ), DAY )
Try this:
DATEDIFF ( SELECTEDVALUE ( Backlog [Requested Ship Date] ), SELECTEDVALUE ( Backlog [Scheduled Ship Date], DAY ) )
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.