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
Greetings!
I am trying to build a percentile matrix that allows the user to slice it by year, sales channel, business unit, category, sub-category, etc.
Below is what I am trying to build in Power BI:
| Line-Item | Min | 25th Percentile | 50th Percentile | 75th Percentile | Max |
| Volume | ## | ## | ## | ## | ## |
| Gross Sales | $$ | $$ | $$ | $$ | $$ |
| Net Sales | $$ | $$ | $$ | $$ | $$ |
| Inventory COGS | $$ | $$ | $$ | $$ | $$ |
| Other COGS | $$ | $$ | $$ | $$ | $$ |
| Freight | $$ | $$ | $$ | $$ | $$ |
| Warehouse | $$ | $$ | $$ | $$ | $$ |
| Gross Margin | $$ | $$ | $$ | $$ | $$ |
| EBIT | $$ | $$ | $$ | $$ | $$ |
| Contribution Margin | $$ | $$ | $$ | $$ | $$ |
Here is a general idea of what my fact table looks like:
| Date | Category_ID | Sub-Category_ID | Volume | Gross Sales | Net Sales | Inventory COGS | Other COGS | Freight | Warehouse | Gross Margin | EBIT | Contribution Margin |
| 1/1/2021 | A | A1 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | A | A1 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | A | A1 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | A | A2 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | A | A2 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | B | B1 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | B | B1 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | B | B2 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | B | B2 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | B | B2 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | C | C1 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | C | C1 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | C | C2 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
| 1/1/2021 | C | C2 | ## | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ | $$ |
I've looked around and tried a few of my own techniques but I can't seem to crack this nut.
Does anyone have any good ideas on how I can achieve this?
Thank you!
Hi, @Anonymous
Please check this example:
Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.
Appreciate your Kudos !!!
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/
Proud to be a Super User!
Hi @ALLUREAN
Thank you for providing me with this solution!
Are we able to achieve the same outcome without unpivoting the original fact table?
The reason being, is that I have a lot of other measures on top of that fact table and unpivoting would require me to re-write all the DAX code I have.
Go to matrix options, under Values should have Show on rows. Not sure this will solve it, depends on your data
Proud to be a Super User!
But the measures you provided are dependent on the unpivoted table and not the original table. Am I missing something?
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 |
|---|---|
| 62 | |
| 54 | |
| 40 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 94 | |
| 83 | |
| 33 | |
| 32 | |
| 24 |