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! It's time to submit your entry. Live now!
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! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 69 | |
| 45 | |
| 36 | |
| 28 | |
| 23 |
| User | Count |
|---|---|
| 135 | |
| 121 | |
| 58 | |
| 40 | |
| 32 |