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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
lawada
Helper III
Helper III

help: creating a percentage selector slicer

I have a table that shows the following data:

laundry name- total orders- placed orders -successful orders- success rate[overall] %,success rate %

where the success rate[overall] is a measure calculated by : [Successful Orders]/[Total Orders]
and the success rate is a measure too that is calculated by:[Successful Orders]/[Placed Orders]

i need to create a benchmark or a (% selector) where for example, if i select >=50% it will show me data in the table when success rate and success rate[overall] greater than or equal to 50 or if i select <50% it will show me data when success rate and success rate[overall]is below 50% 

note:1- overall orders,successful orders,placed orders are also a measuers created by counting the "orderID" from orders table where each of the three has a different status.

2- this table is filtered by "country name" from countries table, "order date" from orders table,"laundry name" from laundries table.

laundry nametotal ordersplaced orderssuccussful orderssuccess rate[overall] %success rate %
laundry 120318516280%87.57%
laundry 220118016180%89.44%
laundry 318516414076%85.37%
laundry 417216115087%93.17%
laundry 520518314872%80.87%
laundry 621119317482%90.16%
1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @lawada ,

 

You can also create a what-if parameter:Capture.PNG

You could use something like:

 

Measure =
COUNTROWS (
    FILTER (
        SUMMARIZE ( 'laundries', laundries[laundryID], "_success rate", [success rate] ),
        [_success rate] >= [Parameter Value]
    )
)

 

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

View solution in original post

4 REPLIES 4
v-deddai1-msft
Community Support
Community Support

Hi @lawada ,

 

You can also create a what-if parameter:Capture.PNG

You could use something like:

 

Measure =
COUNTROWS (
    FILTER (
        SUMMARIZE ( 'laundries', laundries[laundryID], "_success rate", [success rate] ),
        [_success rate] >= [Parameter Value]
    )
)

 

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

Greg_Deckler
Community Champion
Community Champion

@lawada - Not sure I follow 100% but from what I am seeing, I think you need a disconnected table for your slicer where you can set your threshold. Then you could use this to build a Complex Selector however you wish. So you slicer table might be:

Slicer Table = GENERATESERIES(0.1,0.9,0.1)

Then you could create a measure like this:

 

Selector Measure = 
  VAR __Threshold = SELECTEDVALUE('Slicer Table'[Value])
RETURN
  IF([success rate[overall]]>__Threshold,1,0)

You could then use that in a visual level filter where you filter for 1 and not 0.

https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

that  works perfectly but now im trying to calculate number of laundries presented inside the table and visualize it inside a card , to do that i should use the "laundryID" from laundries table and create a measure this way: calculate(count(laundries[laundryID])).

however when i select a % from the slicer its counting all number of laundries without considering the selected % 

amitchandak
Super User
Super User

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.