Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.