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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 51 | |
| 36 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |