Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
Solved! Go to Solution.
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()
)
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()
)
Hello miTutorials,
Your solution worked. Really appreciate your help
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |