Forum Discussion
Issue with calculated date range
- 1 year ago
Hi lisapduan ,
Apologies for any earlier inconvenience. Our testing confirms that the date range logic functions as intended and meets your original requirements.
FYI:
From your latest message, it seems a particular relationship in your data model is affecting the date context flow. This explains why the logic worked correctly when that specific table was removed.
While the DAX solution is robust, you may need to adjust your model setup slightly to ensure everything aligns perfectly.
I have also attached a .pbix file containing a simplified example of the working logic for your reference.
Regards,
Yugandhar.
If the dates are coming from a separate date dimension, use
Var minDt = min(dates[date])
Var maxDt = max(dates[date])
Return
MinDt & " - " maxDt