Forum Discussion
Need help in Dax (Date based calculation)
- 6 years ago
Create a common dimestion DATE
Create a common using Parameter1 Parameter2 from table 1like
Table 3 = distinct(summarize(Table1,table1[Parameter1],table1[Parameter2])
Join to both tables using parameter 1
Value =
var _max = minx(Date,Date[Date])return
calculate(count(table1[Amount],filter(all(Date),Date[Date]>=_max))
Unit =
var _max = minx(Date,Date[Date])return
calculate(count(table2[Unit],filter(all(Date),Date[Date]<=_max))Appreciate your Kudos.
Create a common dimestion DATE
Create a common using Parameter1 Parameter2 from table 1
like
Table 3 = distinct(summarize(Table1,table1[Parameter1],table1[Parameter2])
Join to both tables using parameter 1
Value =
var _max = minx(Date,Date[Date])
return
calculate(count(table1[Amount],filter(all(Date),Date[Date]>=_max))
Unit =
var _max = minx(Date,Date[Date])
return
calculate(count(table2[Unit],filter(all(Date),Date[Date]<=_max))
Appreciate your Kudos.
- Anonymous6 years agoNot applicable