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!
I have these data in an excel
Priority | SLA Breached | Number |
P1 | Yes | INC0000 |
P2 | No | INC0001 |
P3 | Yes | INC0002 |
P3 | No | INC0003 |
P4 | No | INC0004 |
P4 | No | INC0005 |
P5 | Yes | INC0006 |
P5 | Yes | INC0007 |
and I want output as below in power BI table format. Any help will be appreciated
Priority | Total tickets | % of No |
P1 | 1 | 0 |
P2 | 1 | 100 |
P3 | 2 | 50 |
P4 | 2 | 100 |
P5 | 2 | 0 |
Solved! Go to Solution.
Hi @mousumimandal,
You can try this option:
DAX code in plain text:
Result Table =
ADDCOLUMNS (
SUMMARIZE ( 'Table', [Priority], "Total tickets", CALCULATE ( COUNTROWS ( 'Table' ) ) ),
"% of No",
VAR currentPriority = [Priority]
RETURN FORMAT ( ( COUNTROWS ( FILTER ( 'Table', [SLA Breached] = "No" && [Priority] = currentPriority ) ) + 0 ) / [Total tickets], "Percent" ) )
Best Regards,
Alexander
Hi @mousumimandal,
Try removing the FORMAT (...) part and updating settings (see the screenshot below). Should work after that.
Best Regards,
Alexander
Hi @mousumimandal,
You can try this option:
DAX code in plain text:
Result Table =
ADDCOLUMNS (
SUMMARIZE ( 'Table', [Priority], "Total tickets", CALCULATE ( COUNTROWS ( 'Table' ) ) ),
"% of No",
VAR currentPriority = [Priority]
RETURN FORMAT ( ( COUNTROWS ( FILTER ( 'Table', [SLA Breached] = "No" && [Priority] = currentPriority ) ) + 0 ) / [Total tickets], "Percent" ) )
Best Regards,
Alexander
Thank you, It worked. There was another thing
I was trying to change the background colour of "% of No". but its not showing me generic option like this.
Instead, I am getting count, sum etc.
Hi @mousumimandal,
Try removing the FORMAT (...) part and updating settings (see the screenshot below). Should work after that.
Best Regards,
Alexander
Thanks. It worked😀
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 |
|---|---|
| 62 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 122 | |
| 104 | |
| 45 | |
| 31 | |
| 24 |