Forum Discussion
sksonti
2 years agoNew Member
Summarize/Group Items
Hello Team, I want to group general ledger accounts into different categories and sum the values. I am attaching a screenshot. Thanks for all your help
- 2 years ago
Add a calculated column and use the below dax.
Category = SWITCH ( TRUE (), YourTable[GL] = 6000 || YourTable[GL] = 6001, "COGS", YourTable[GL] = 5000 || YourTable[GL] = 5001, "Rent", YourTable[GL] = 5500 || YourTable[GL] = 5600, "Fuel", BLANK() )
miTutorials
2 years agoSuper User
Add a calculated column and use the below dax.
Category =
SWITCH (
TRUE (),
YourTable[GL] = 6000 || YourTable[GL] = 6001, "COGS",
YourTable[GL] = 5000 || YourTable[GL] = 5001, "Rent",
YourTable[GL] = 5500 || YourTable[GL] = 5600, "Fuel",
BLANK()
)
sksonti
2 years agoNew Member
Hello miTutorials,
Your solution worked. Really appreciate your help