Forum Discussion
Anonymous
4 years agoNot applicable
Regarding Matrix Column Total Calculation based on date selection
Hi, I have to create a DAX which calculates the total of a column based on date and then divide the row total of that with the total value. eg. So, i want to create a measure which take amo...
- Anonymous4 years ago
Thank you Guys for the help..
I also tried using this :
Total = CALCULATE(Table[Amount],ALLEXCEPT(Table,Table[Date))
and it worked !!
Thanks for your help as well.
Samarth_18
4 years agoCommunity Champion
Hi Anonymous ,
You could create a measure as below:-
Measure =
VAR total =
CALCULATE (
SUM ( 'Table (2)'[Amount] ),
ALL ( 'Table (2)'[Variety] ),
'Table (2)'[Date] = MAX ( 'Table (2)'[Date] )
)
RETURN
DIVIDE ( MAX ( 'Table (2)'[Amount] ), total )
Refer attached file.
BR,
Samarth