Forum Discussion
Maikeru
7 years agoHelper II
Calculating Min/Max date columns based on selected values
Hi, I am trying to insert 2 new columns into my dataset containing the MIN/MAX values of the date slicer. I was thinking about the following DAX, but it throws me a circular dependency ...
- 7 years ago
Hi,
You have to write measures, not calculated column formulas. Delete all column from the Calendar Table except the Date column. Write these measures
Minimum date = CALCULATE(MIN('Calendar'[Date]),ALLSELECTED('Calendar'[Date]))
Maximum date = CALCULATE(MAX('Calendar'[Date]),ALLSELECTED('Calendar'[Date]))
Hope this helps.
Ashish_Mathur
7 years agoSuper User
Hi,
You have to write measures, not calculated column formulas. Delete all column from the Calendar Table except the Date column. Write these measures
Minimum date = CALCULATE(MIN('Calendar'[Date]),ALLSELECTED('Calendar'[Date]))
Maximum date = CALCULATE(MAX('Calendar'[Date]),ALLSELECTED('Calendar'[Date]))
Hope this helps.
Maikeru
7 years agoHelper II
Thank you Ashish_Mathur!
That's exactly what I was looking for!
- Ashish_Mathur7 years agoSuper User
You are welcome.