Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Solved! Go to Solution.
Hi @Power_MN ,
Use what-if parameters and try to create measures like this:
Initial rank =
RANKX(
ALL('Table'),
CALCULATE(SUM('Table'[Price])),,DESC,Dense
)
New Rank =
IF(
SUM('Table'[Price]) > 'Price reference'[Price reference Value], [Initial rank],
RANKX(
FILTER(
ALL('Table'),
'Table'[Price] <= 'Price reference'[Price reference Value]
),CALCULATE(SUM('Table'[Price])),,DESC,Dense
)
)
Attached a sample file in the below, hopes it could help.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Power_MN ,
Use what-if parameters and try to create measures like this:
Initial rank =
RANKX(
ALL('Table'),
CALCULATE(SUM('Table'[Price])),,DESC,Dense
)
New Rank =
IF(
SUM('Table'[Price]) > 'Price reference'[Price reference Value], [Initial rank],
RANKX(
FILTER(
ALL('Table'),
'Table'[Price] <= 'Price reference'[Price reference Value]
),CALCULATE(SUM('Table'[Price])),,DESC,Dense
)
)
Attached a sample file in the below, hopes it could help.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @Power_MN ,
you can use the What-If-Parameter to get a range:
Use what-if parameters to visualize variables - Power BI | Microsoft Docs
In the measures you can then calculate with the SELECTEDVALUE of the What-If-Parameter.
Like this you should get your desired result.
Hello @selimovd ,
that was helpful! I'm one step closer to my goal.
How can I set the slicer or how can I write the measure, that it only effects one suppliers price?
Background: I want so show, what happens in the ranking, if the price of this particular supplier increase.
Thank you!
Kind regards
Michael
Hey @Power_MN ,
that's what is described in the link I posted.
You add a What if parameter:
When you press OK a slicer is created from this parameter:
In you Measure you can use the current value from the slicer with the SELECTEDVALUE function.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!