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
k_swathi2001
Regular Visitor

Dynamic Pareto table based on cumulative %

 Hi,

 

I am working on Pareto table which shows the Product Grade and units based on 80/20 rule. I would like to have a parameter where I can change the 80/20 % and check to see Product grade based on 70/30 or 60/40. Is it possible to do it? I tried using what-if parameters but I was not able to acheive the dynamic % change. I am using below formula in a new colulmn and I want to use a parameter instead of static numbers.

 

k_swathi2001_0-1662932600805.png

 

I am unable to attach the pbix file for sample purpose. 

 

Any help on this is appreciated.

 

Thanks
KS

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @k_swathi2001 ,

 

Please check "Field parameters" in Preview features.  Then restart Power BI for the function to take effect.

vyadongfmsft_1-1662949349956.png

 

Please try following DAX to create three measures:

 

Grade(80/20 %) = SWITCH(
    TRUE(),
    MAX('Table'[Cumm Pct])<=0.6,"A+",
    MAX('Table'[Cumm Pct])>0.6 && MAX('Table'[Cumm Pct])<=0.8,"A",
    MAX('Table'[Cumm Pct])>0.8 && MAX('Table'[Cumm Pct])<0.9,"B","C")

Grade(70/30 %) = SWITCH(
    TRUE(),
    MAX('Table'[Cumm Pct])<=0.3,"A+",
    MAX('Table'[Cumm Pct])>0.3 && MAX('Table'[Cumm Pct])<=0.7,"A",
    MAX('Table'[Cumm Pct])>0.7 && MAX('Table'[Cumm Pct])<0.9,"B","C")

Grade(60/40 %) = SWITCH(
    TRUE(),
    MAX('Table'[Cumm Pct])<=0.4,"A+",
    MAX('Table'[Cumm Pct])>0.4 && MAX('Table'[Cumm Pct])<=0.6,"A",
    MAX('Table'[Cumm Pct])>0.6 && MAX('Table'[Cumm Pct])<0.9,"B","C")

 

 

Click "Modeling"-"New parameter"-"Fields".

vyadongfmsft_2-1662949443902.png

 

Check three measures and click "Create".

vyadongfmsft_3-1662949630802.png

You will get a field parameter like below:

vyadongfmsft_4-1662949796278.png

 

Create a slicer using field parameter and create a table visual using ID column and field parameter.

vyadongfmsft_5-1662949935172.png

 

You can change the 80/20 % and check to see Product grade based on 70/30 or 60/40. 

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-yadongf-msft
Community Support
Community Support

Hi @k_swathi2001 ,

 

You can create various percentage combinations for end users. I don't think "the user wants to enter his own % to check the impact" is possible.

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yadongf-msft
Community Support
Community Support

Hi @k_swathi2001 ,

 

Please check "Field parameters" in Preview features.  Then restart Power BI for the function to take effect.

vyadongfmsft_1-1662949349956.png

 

Please try following DAX to create three measures:

 

Grade(80/20 %) = SWITCH(
    TRUE(),
    MAX('Table'[Cumm Pct])<=0.6,"A+",
    MAX('Table'[Cumm Pct])>0.6 && MAX('Table'[Cumm Pct])<=0.8,"A",
    MAX('Table'[Cumm Pct])>0.8 && MAX('Table'[Cumm Pct])<0.9,"B","C")

Grade(70/30 %) = SWITCH(
    TRUE(),
    MAX('Table'[Cumm Pct])<=0.3,"A+",
    MAX('Table'[Cumm Pct])>0.3 && MAX('Table'[Cumm Pct])<=0.7,"A",
    MAX('Table'[Cumm Pct])>0.7 && MAX('Table'[Cumm Pct])<0.9,"B","C")

Grade(60/40 %) = SWITCH(
    TRUE(),
    MAX('Table'[Cumm Pct])<=0.4,"A+",
    MAX('Table'[Cumm Pct])>0.4 && MAX('Table'[Cumm Pct])<=0.6,"A",
    MAX('Table'[Cumm Pct])>0.6 && MAX('Table'[Cumm Pct])<0.9,"B","C")

 

 

Click "Modeling"-"New parameter"-"Fields".

vyadongfmsft_2-1662949443902.png

 

Check three measures and click "Create".

vyadongfmsft_3-1662949630802.png

You will get a field parameter like below:

vyadongfmsft_4-1662949796278.png

 

Create a slicer using field parameter and create a table visual using ID column and field parameter.

vyadongfmsft_5-1662949935172.png

 

You can change the 80/20 % and check to see Product grade based on 70/30 or 60/40. 

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

This is a good solution I can use it for now, but what if the end user wants to enter his own % to check the impact? I mean I have a request where the user wants to  enter any value for % for A+,A,B,C individually and check. 

 

for e.g. The request I got is , the user wants to check  how many products fall under each Grade by changing the %. 

 

This pic is based on 60/20/10 % 

k_swathi2001_0-1662994518348.png

This is based on 70/15/10 %

k_swathi2001_1-1662994716382.png

Basically the user wants to enter his own % to check the impact.

 

Thanks

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.