Forum Discussion
userelationship
Hello Community - I have a measure below that I need to modify, just not sure how. The "sum" of the qty ordered that I am trying to find needs to be based on the "request date". Currently my date table is connected to the "due date".
So, I'd like to use the date table "year and month" field, but I need the values from the measure to reflect the values based on the context of request date, not due date. Also, I have another measure in the visual that also relies on the date table, so it is important that I use the date table. Is there a way to incorporate the USERELATIONSHIP function into this formula below?
5 Replies
- mwegenerMost Valuable Professional
Hi Anonymous ,
in your statement you use ALL to remove the filter from the date table. I think if you want to work with date reference, you have to replace this with the USERELATIONSHIP.
- AnonymousNot applicable
mwegener I have tried this. I actually need to use two userelationships because request date and order date are both connected to the date table using inactive relationships.
But I am getting an error message:
- mwegenerMost Valuable Professional
Hi Anonymous ,
sorry I think I misunderstood your requirement and your DAX statement.
In my opinion, I would not do the date comparison of Order Date and Request Date using the date dimension.
What advantage do you see to do this via the date dimension?