Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello to everyone,
I have a problem that seems unsolvable.
I want to calculate DATEDIFF between two columns BUT I need to graph these numbers by creation date (which is not the active relationship). So i tried this (and lots of other things) :
Hi @Anonymous
If you want to build this in DAX I think you will create unnecessary complexity. A solution might be something like this:
Measure =
CALCULATE(
SUMX(
TOP,
[B]-[A]
)
USERELATIONSHIP(Calendrier[Date],TOP[ticket_creationdate])
)
or [A] and [B] switched
Measure =
CALCULATE(
SUMX(
TOP,
[A]-[B]
)
USERELATIONSHIP(Calendrier[Date],TOP[ticket_creationdate])
)
Why do you not calculate the difference in Power Query first and then Use DAX with USERELATIONSHIP on the newly createx column?
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
First of all, thank you for your feedback. Indeed, I did this formula in the first place, but for the need of a graph I need to have a calculated field with the creation date, otherwise the graph is wrong.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 172 | |
| 107 | |
| 92 | |
| 54 | |
| 46 |