Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Dynamic Percentile Matrix

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:

  • Slicer 1
  • Slicer 2
  • Slicer 3
  • Slicer 4
Line-ItemMin25th Percentile50th Percentile75th PercentileMax
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:

 

DateCategory_IDSub-Category_IDVolumeGross SalesNet SalesInventory COGSOther COGSFreightWarehouseGross MarginEBITContribution Margin
1/1/2021AA1##$$$$$$$$$$$$$$$$$$
1/1/2021AA1##$$$$$$$$$$$$$$$$$$
1/1/2021AA1##$$$$$$$$$$$$$$$$$$
1/1/2021AA2##$$$$$$$$$$$$$$$$$$
1/1/2021AA2##$$$$$$$$$$$$$$$$$$
1/1/2021BB1##$$$$$$$$$$$$$$$$$$
1/1/2021BB1##$$$$$$$$$$$$$$$$$$
1/1/2021BB2##$$$$$$$$$$$$$$$$$$
1/1/2021BB2##$$$$$$$$$$$$$$$$$$
1/1/2021BB2##$$$$$$$$$$$$$$$$$$
1/1/2021CC1##$$$$$$$$$$$$$$$$$$
1/1/2021CC1##$$$$$$$$$$$$$$$$$$
1/1/2021CC2##$$$$$$$$$$$$$$$$$$
1/1/2021CC2##$$$$$$$$$$$$$$$$$$

 

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!

4 REPLIES 4
ALLUREAN
Solution Sage
Solution Sage

Hi, @Anonymous 

Please check this example:

 

https://www.dropbox.com/s/ks3dsezceq5nyh6/Dynamic%20Percentile%20Matrix%28allure-analytics.com%29.pb...

 

Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.

Appreciate your Kudos !!!

https://allure-analytics.com/

https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA

https://www.linkedin.com/company/77757292/




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




Anonymous
Not applicable

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




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




Anonymous
Not applicable

But the measures you provided are dependent on the unpivoted table and not the original table. Am I missing something?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors