This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi there,
I wanted to create a matrix visualization which has a client field on the Row, Ship A, Ship B, Ship C and Ship D on the Values. My problem is my table looks as follows. I need to create a percent to total for all shipping methods to put them as individual fields on the values section. Can somebody help me please?
| Client | Shipping Method | Packed Date |
| ABC | Ship A | 03/22/2021 |
| XYZ | Ship D | 04/22/2021 |
| ABC | Ship A | 03/27/2021 |
| XYZ | Ship C | 07/12/2021 |
| XYZ | Ship B | 05/23/2021 |
| ABC | Ship C | 01/19/2022 |
Solved! Go to Solution.
Hi @Kira_Net
"But I need how many percent of product XYZ shipped by Ship A, Ship B, Ship C and Ship D"
in this scenario, you can try this
Percentage =
var _countPermethod= CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'), 'Table'[Client]=MIN('Table'[Client]) && 'Table'[Shipping Method]=MIN('Table'[Shipping Method])))
var _countTotalmethod= CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[Client]=MIN('Table'[Client])))
return
DIVIDE (
_countPermethod,
_countTotalmethod
)
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@Kira_Net , A measure like
divide(count(Table[Shipping Method]) , calculate(count(Table[Shipping Method]) , allselected()) )
or
divide(count(Table[Shipping Method]) , calculate(count(Table[Shipping Method]) , all()) )
@amitchandak Thank you. But this only gives me the percent to total for all shipping method. But I need how many percent of product XYZ shipped by Ship A, Ship B, Ship C and Ship D?
Hi @Kira_Net
"But I need how many percent of product XYZ shipped by Ship A, Ship B, Ship C and Ship D"
in this scenario, you can try this
Percentage =
var _countPermethod= CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'), 'Table'[Client]=MIN('Table'[Client]) && 'Table'[Shipping Method]=MIN('Table'[Shipping Method])))
var _countTotalmethod= CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[Client]=MIN('Table'[Client])))
return
DIVIDE (
_countPermethod,
_countTotalmethod
)
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 26 | |
| 25 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 41 | |
| 40 | |
| 21 | |
| 20 |