Forum Discussion
Using DAX operators on multiple Dates from the same Fact table?
USERELATIONSHIP is a bit harder to use in a calculated column. Instead, I would use just RELATED for one of the two columns (the one with the active relationship) and go for LOOKUPVALUE for the second one.
In this way, you can retrieve the two dates and perform the math.
You can find a detailed description of the scenario here: https://www.sqlbi.com/articles/userelationship-in-calculated-columns/
Have fun with DAX!
Alberto Ferrari
http://www.sqlbi.com
Hello AlbertoFerrari! I recently received your Definitive Dax book, obviously not far enough through yet!
Thanks for pointing me in this direction, because the matter was urgent we solved the issue in SQL before building the model. I'll be recreating the issue in a test environment and will update this thread accordingly.