Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am trying to get the "Lag" days between the MAX "Physical date" and "terms approved date." This is the code I am currently using but it is not working:
Solved! Go to Solution.
hi, @Anonymous
Lag =
DATEDIFF(
MAX(cr93f_cpsoo[Physical Date]),
max(cr93f_cpsoo[Terms Approved DateTime]),
DAY
)
hi, @Anonymous
remove () after Day
Lag = DATEDIFF(CALCULATE(MAX(cr93f_cpsoo[Physical Date]), cr93f_cpsoo[Terms Approved DateTime]),DAY )
Hi @Dangar332
When I remove () after Day it gives me this error:
Too few arguments were passed to the DATEDIFF function. The minimum argument count for the function is 3.
hi, @Anonymous
Lag =
DATEDIFF(
MAX(cr93f_cpsoo[Physical Date]),
max(cr93f_cpsoo[Terms Approved DateTime]),
DAY
)
Hi @Dangar332
It worked! Thank you! What is the best way to present these findings in a visual?
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |