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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
sugar_sugar
Regular Visitor

undefinedDynamic Threshold Setting for Pareto Analysis Using Parameters

I am creating a Pareto chart in Power BI. I have created a new column using the following DAX expressions:

 

Pareto = 
VAR ranking = RANKX('Sheet1','Sheet1'[Sales by Product])
VAR runningsum = SUMX(TOPN(ranking,'Sheet1','Sheet1'[Sales by Product],DESC),'Sheet1'[Sales by Product])
VAR total = CALCULATE(SUM('Sheet1'[Sales by Product]),ALL('Sheet1'))
RETURN DIVIDE(runningsum,total)

ABC Rank =
IF('Sheet1'[Pareto] <= 0.8,"A",
IF('Sheet1'[Pareto] <= 0.9,"B","C"))

 

Next, I want to adjust the thresholds for ABC Rank using parameters so that they can be dynamically adjusted.

However, I am having trouble getting this to work properly using the new parameter feature in the Modeling tab.

How can I achieve this?

2 REPLIES 2
sugar_sugar
Regular Visitor

Thank you for your response.
I have attached the sample data I am using.
Best regards.

 

Product IDSales by ProductPareto
A101431536710.47%
A102401720320.21%
A103272825026.82%
A104239303232.63%
A105202517037.54%
A106193925642.24%
A107168455946.33%
A108137693049.67%
A109134410252.92%
A110129641456.07%
A111114139658.84%
A112103451361.35%
A11394962063.65%
A11489501365.82%
A11589082067.98%
A11673632469.76%
A11769314471.45%
A11866626773.06%
A11965962974.66%
A12065956376.26%
A12160916677.74%
A12258786079.16%
A12354941480.50%
A12453425981.79%
A12552245883.06%
A12647152084.20%
A12745603185.31%
A12844089086.38%
A12943480387.43%
A13042308188.46%
A13141710589.47%
A13238686890.41%
A13337160791.31%
A13435469092.17%
A13531685692.94%
A13630772493.68%
A13730232894.42%
A13827958295.09%
A13924331095.68%
A14024030896.27%
A14122739096.82%
A14221317697.34%
A14318294297.78%
A14416030098.17%
A14515261498.54%
A14612435298.84%
A14711620799.12%
A14810658899.38%
A14910497499.63%
A1509366899.86%
A1514844899.98%
A1528721100.00%
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.