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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello guys,
I have a table called Audits like this:
And the customer wants to see the audits grouped by category. The issue here is that we don't have the categories. The result table should look like:
It sounds simple but I have no idea how to do it. Any ideas, please?
Solved! Go to Solution.
Hi @eltonxavier,
Please follow the steps below.
1. Go to Query Editor and Rename the column to Four Pillars and PPE;
2. Select the two columns Four Pillars and PPE and Unpivot columns.
3. Rename the Attribute to Category and Close and Apply.
4. Go to Modeling tab and create two measures with the formula below.
Safe = var temp= CALCULATE(COUNT(Table1[Value]),FILTER('Table1','Table1'[Value]="Yes")) return IF(ISBLANK(temp),0,temp)
UnSafe = var temp= CALCULATE(COUNT(Table1[Value]),FILTER('Table1','Table1'[Value]="No" )) return IF(ISBLANK(temp),0,temp)
5. Create the matrix like below.
More details, you could refer to the attachment.
Hope this can help you!![]()
Best Regards,
Cherry
Hi @eltonxavier,
Please follow the steps below.
1. Go to Query Editor and Rename the column to Four Pillars and PPE;
2. Select the two columns Four Pillars and PPE and Unpivot columns.
3. Rename the Attribute to Category and Close and Apply.
4. Go to Modeling tab and create two measures with the formula below.
Safe = var temp= CALCULATE(COUNT(Table1[Value]),FILTER('Table1','Table1'[Value]="Yes")) return IF(ISBLANK(temp),0,temp)
UnSafe = var temp= CALCULATE(COUNT(Table1[Value]),FILTER('Table1','Table1'[Value]="No" )) return IF(ISBLANK(temp),0,temp)
5. Create the matrix like below.
More details, you could refer to the attachment.
Hope this can help you!![]()
Best Regards,
Cherry
@v-piga-msft you're a star! It just worked, simple as that! Thank you so much for your help 😃
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 111 | |
| 109 | |
| 40 | |
| 33 | |
| 26 |