Forum Discussion
Anonymous
5 years agoNot applicable
Add custom subtotal rows
Dear all, I have raw data: account codes and values. The challenge is to show custom subtotals in the same table as the accoundtcodes. Use case: finance (profit and loss statement with groupings ...
- 5 years ago
Anonymous That would work or if you had an additional column in your data or if you added a calculated column in M code or as a calculated column in DAX, such as:
Group Code Column = SWITCH(TRUE(), [Code] = "0010" || [Code] = "0020","0025", [Code] )
Anonymous
5 years agoNot applicable
Greg_Deckler you mean, to use a "matching table"?
Code Group code
0010 0025
0020 0025
0030 0030
0040 0040
Greg_Deckler
5 years agoCommunity Champion
Anonymous That would work or if you had an additional column in your data or if you added a calculated column in M code or as a calculated column in DAX, such as:
Group Code Column =
SWITCH(TRUE(),
[Code] = "0010" || [Code] = "0020","0025",
[Code]
)