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

Using parameters to set pass/fail mark

Hello,

I have the following example data:

NameCat1Cat2Cat3Avg
Ewan4423.33
James2332.67
Nick3011.33
Tim1502.33
William5555
Jack0122.33

 

I am new to Power BI so am struggling to build exactly what I would have built in Tableau. I want to be able to specify a "Threshold score", eg a value between 0 and 5 (intervals of 1). I would then like to create a 100% Stacked Bar or Pie Chart which shows the number of names which are above/equal to the threshold value vs the names that are below the threshold value for each category. The user could then be able to use the parameter slider and alter the value and as they do this, the graphs would update.

 

In my head, it should be simply:

IF (Cat1 >= Parameter, "Pass", "Fail")

 

Then set that as the legend on a Pie/Bar chart so (if the threshold value was 2 for example) we could produce the following:

 
 
 
 

Annotation 2020-04-20 145638.png

 

 

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

@ejhh12 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Create-a-bar-graph-with-measures-as-axis/td-p/455900

Community Support Team _ Sam Zha
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-chuncz-msft
Community Support
Community Support

@ejhh12 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Create-a-bar-graph-with-measures-as-axis/td-p/455900

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

Are you looking for whatif

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

 

Also, consider unpivoting your data

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak I don't think it is whatif issue, whatif is just one part of it, @ejhh12 needs to create a pass/fail values based on parameter so that he can use that in legend.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.