Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Letโs celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Power BI Community,
I am facing issue while using What if Parameter to allow user to decide value for High risk, Medium risk and Low risk. Below steps I have used to implement the use case.
1. Created 2 what if parameter for High Risk and Medium risk, which allow user to set the upper limit for both of the categories with the ranges.
2. Created new measure (since calculated column would not be dynamic) using below DAX expression
I tried but it gives me blank values, since measure can not be used as dimension I think. Need help to find a work around.
If some one have worked similar kind of use case please share the solution.
Appriciate your time and support in this scenario.
Thank you!
Bhawna Gupta
Solved! Go to Solution.
For your reference.
Step 0: I use these data tables below.
'DATA' Table
'High Risk Parameter' Table
'Medium Risk Parameter' Table
Step 1: I make 2 slicers and make 5 measures.
M_HighRiskValue = SELECTEDVALUE('High Risk Parameter'[High Risk Parameter Value])
M_MediumRiskValue = SELECTEDVALUE('Medium Risk Parameter'[Medium Risk Parameter Value])
M_High Risk = COUNTX(FILTER('DATA','DATA'[Column]<[M_HighRiskValue]),'DATA'[ID])
M_Low Risk = COUNTX(FILTER('DATA','DATA'[Column]<[M_MediumRiskValue]),'DATA'[ID])
M_Medium Risk = COUNTROWS('DATA')-[M_High Risk]-[M_Low Risk]
Step 2: I make a 'Clustered column chart'.
For your reference.
Step 1: I make a "Parameter". (The slicer is made automatically.)
Step 2: I make a graph.
Thank you so much for your solution, I have one more issue, is there any way to create filter for this risk category using what if parameter? Risk category: High Risk, Medium Risk and Low risk, which will slice the information on the desktop
Appriciate your response and time
For your reference.
Step 1: I make a "Parameter". (The slicer is made automatically.)
Step 2: I make a graph.
This is perfect, can you please provide the sample data for the use of parameter if possible.
Perfect Thank you so much
For your reference.
Step 0: I use these data tables below.
'DATA' Table
'High Risk Parameter' Table
'Medium Risk Parameter' Table
Step 1: I make 2 slicers and make 5 measures.
M_HighRiskValue = SELECTEDVALUE('High Risk Parameter'[High Risk Parameter Value])
M_MediumRiskValue = SELECTEDVALUE('Medium Risk Parameter'[Medium Risk Parameter Value])
M_High Risk = COUNTX(FILTER('DATA','DATA'[Column]<[M_HighRiskValue]),'DATA'[ID])
M_Low Risk = COUNTX(FILTER('DATA','DATA'[Column]<[M_MediumRiskValue]),'DATA'[ID])
M_Medium Risk = COUNTROWS('DATA')-[M_High Risk]-[M_Low Risk]
Step 2: I make a 'Clustered column chart'.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
55 | |
36 | |
34 |
User | Count |
---|---|
99 | |
56 | |
53 | |
44 | |
40 |