Forum Discussion
How to combine 2 date expression into 1 ?
- 4 years ago
Hi admin11
Just as amitchandak said, that's not available. But you can use measure to select any Calendar table you want, for example,
when you select Date1, then measure will do calculations by using table Date1, and if you select Date2, then the measure will do calculations by using table Date2.
Measure = var _Date= SELECTEDVALUE(Slicer[Column1]) var _CalculationForDate1= CALCULATE(MAX(DATE1[Date]),ALL(DATE1)) var _CalculationForDate2= CALCULATE(MAX(DATE2[Date]),ALL(DATE2)) return IF(_Date="Date1",_CalculationForDate1,IF(_Date="Date2",_CalculationForDate2))Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi admin11
Just as amitchandak said, that's not available. But you can use measure to select any Calendar table you want, for example,
when you select Date1, then measure will do calculations by using table Date1, and if you select Date2, then the measure will do calculations by using table Date2.
Measure =
var _Date= SELECTEDVALUE(Slicer[Column1])
var _CalculationForDate1= CALCULATE(MAX(DATE1[Date]),ALL(DATE1))
var _CalculationForDate2= CALCULATE(MAX(DATE2[Date]),ALL(DATE2))
return
IF(_Date="Date1",_CalculationForDate1,IF(_Date="Date2",_CalculationForDate2))
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.