March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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'.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |