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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.