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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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.pbix?dl=0

 

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.