Forum Discussion
Brite
5 years agoHelper I
Sum by Month Help
Hello,
I have been trying to sum Pay1, Pay2, and Pay3... data by the same month. What is the best way to solve this? Thanks!
6 Replies
- PaulDBrownCommunity Champion
try:
Sum Pay1 = CALCULATE (SUM(Table[Pay1]), ALLEXCEPT(Table, Table[SignedDate]))
etc...
- BriteHelper I
PaulDBrown Forgot to mention Pay1, Pay2, Pay3... are all measures. The Dax formula above doesn't accept sum('Tablename'[Pay1]). How would I sum Dax measures (Pay1, Pay2, Pay3..)?
- PaulDBrownCommunity Champion
It depends on what the measures calculate, but in principle:
Sum Pay1 by month= CALCULATE [Pay1], ALLEXCEPT(Table, Table[SignedDate]))
or
SUMX(ALLEXCEPT(Table, Table[SignedDate]), [Pay1]))