Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Average Account Life 2:=
AVERAGEX (
FILTER (
'Facts', [Close Date] > [Open Date]),
DATEDIFF([Open Date], [Close Date], MONTH))
The measure above gives me an error saying the DATEDIFF function requires the start date cannot be greater than the end date. So my Filter isn't working the way I think it should. Please, someone, tell me what I'm missing.
Thanks,
Gabe
Solved! Go to Solution.
Hi @gdelvecchio,
One sample for your refernce. Using the fomula as below, everything worked well.
Measure = AVERAGEX(FILTER(Facts,Facts[Open Date]<Facts[Close Date]),DATEDIFF(Facts[Open Date],Facts[Close Date],MONTH))
For more details, please check the pbix as attached.
Regards,
Frank
Try to work with following formula
Measure = AVERAGEX(FILTER(Facts,
Facts[Open Date] < Facts[Close Date]),
DATEDIFF(Facts[Open Date],
Facts[Close Date], MONTH))
Hop it will give correct answer.
Hi @gdelvecchio,
Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.
Regards,
Frank
Hi @gdelvecchio,
One sample for your refernce. Using the fomula as below, everything worked well.
Measure = AVERAGEX(FILTER(Facts,Facts[Open Date]<Facts[Close Date]),DATEDIFF(Facts[Open Date],Facts[Close Date],MONTH))
For more details, please check the pbix as attached.
Regards,
Frank
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
101 | |
73 | |
69 | |
46 |
User | Count |
---|---|
145 | |
106 | |
105 | |
90 | |
65 |