Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
DATEDIFF doesn't show the expected difference. I am trying to calculate "Months from first purchase".
Both columns are the same date format. The difference I get is not correct.
This is a calcualted column:
Thanks,
Erez
Solved! Go to Solution.
It looks like you pulled that column into a visual and the field is set to SUM. My guess is the second line represents 3 records in your data set (4 months diff * 3 = 12) and the third line is covering 2 records. Try changing the field to show the AVERAGE.
Could it be your date format? I tried with MM/DD/YYYY format and DATEDIFF works perfectly fine.
Another alternate formula could be:
Hi @erezbenmoshe ,
Works here.
Proud to be a Super User!
It looks like you pulled that column into a visual and the field is set to SUM. My guess is the second line represents 3 records in your data set (4 months diff * 3 = 12) and the third line is covering 2 records. Try changing the field to show the AVERAGE.
You are right!! I am embarrassed that I did not figure it out myself 🙂
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 34 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 65 | |
| 44 | |
| 30 | |
| 28 |