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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
jeje09
Regular Visitor

Create Single Value Slicer

Hello, hope someone can help me on this report. exhausted all possible scenarios but unable to find one.

 

I want to create a single filter or slicer for the minimum and maximum value (for the users to have the ability to put a SINGLE value only).

 

for example, I have a filter selected (prob1). as per the selected filter, it should get both the minimum and maximum value that can be seen on the "probability_val" column, so the single value slicer should fall ino these values only (e.g minimum value is -4 while maximum is 349,900) so it is imperative that in the single value slicer, users can only put within this range. so both the minimum and maximum value is dynamic depending on the filter selected (probability column).

 

The reason behind this are as follows:
       1. Dynamic Filtering Based on User Input

 

  • Users can set a custom range by defining a Minimum and Maximum value for the selected metric (prob1, prob2, etc.).
  • This allows them to focus on applications that fall within a specific threshold.

     

    2. Default Values Based on Actual Data

    • The slicers should default to the actual minimum and maximum values of the selected metric (prob1, prob2, prob3 or prob4)
    • This ensures that when a user first interacts with the report, they see the full range of data.

      3. Interactive Data Exploration

      • Users can adjust the range dynamically, filtering out values that are too high or too low for their analysis.
      • For example, if a user sets:
        • Min Value = 10
        • Max Value = 50
        • The dataset will only show records where the metric (probability_val) falls within 10 to 50.

this is the sample data

store_idcertifying_bodyprobabilityprobability_val
sid-10050safe_deckprob1-4
sid-10051crocs_blessprob2-2
sid-10052safe_deckprob3-1
sid-10053crocs_blessprob40
sid-10054safe_deckprob1-4
sid-10055crocs_blessprob2-2
sid-10056safe_deckprob3-1
sid-10057crocs_blessprob40
sid-10058safe_deckprob140
sid-10059crocs_blessprob210
sid-10060safe_deckprob3340
sid-10061crocs_blessprob4850
sid-10062safe_deckprob150
sid-10063crocs_blessprob225
sid-10064safe_deckprob348
sid-10065crocs_blessprob438
sid-10066safe_deckprob169
sid-10067crocs_blessprob274900
sid-10068safe_deckprob384000
sid-10069crocs_blessprob4106100
sid-10070safe_deckprob1349900
sid-10071crocs_blessprob243700
sid-10072safe_deckprob347900
sid-10073crocs_blessprob4950
sid-10074safe_deckprob1500
sid-10075crocs_blessprob220700
sid-10076safe_deckprob328800
sid-10077crocs_blessprob4-4
sid-10078safe_deckprob1-1
sid-10079crocs_blessprob20
sid-10080safe_deckprob30
sid-10081crocs_blessprob4-2
sid-10082safe_deckprob10
sid-10083crocs_blessprob2220
sid-10084safe_deckprob3230
sid-10085crocs_blessprob4560
sid-10086safe_deckprob1780
sid-10087crocs_blessprob2678
sid-10088safe_deckprob3450
sid-10089crocs_blessprob44890
sid-10090safe_deckprob1563
sid-10091crocs_blessprob2200
sid-10092safe_deckprob3400
sid-10093crocs_blessprob4550
sid-10094safe_deckprob15666
sid-10095crocs_blessprob24560
sid-10096safe_deckprob37890
sid-10097crocs_blessprob47673
sid-10098safe_deckprob1341
sid-10050crocs_blessprob251
sid-10051safe_deckprob323
sid-10052crocs_blessprob424
sid-10053safe_deckprob126
sid-10054crocs_blessprob279
sid-10070safe_deckprob3500
sid-10071crocs_blessprob443700
sid-10072safe_deckprob147900
sid-10073crocs_blessprob2950
sid-10074safe_deckprob34560
sid-10056crocs_blessprob47890
sid-10057safe_deckprob17673
sid-10058crocs_blessprob2341
sid-10059safe_deckprob343700
sid-10060crocs_blessprob447900
sid-10061safe_deckprob1950
sid-10062crocs_blessprob2500

 

 

1 ACCEPTED SOLUTION

hello @jeje09 

 

i might be misunderstood, but i think you can do this by using "between" slicer if you only want to show all value in between.

Irwan_0-1740783256959.png

your users can set the number they want at those minimum and maximum boxes in slicer visual.

combining with @Sahir_Maharaj 's DAX, you can show min or max value of the selection for interactive visual.

 

Hope this will help.

Thank you.

View solution in original post

3 REPLIES 3
Sahir_Maharaj
Super User
Super User

Hello @jeje09,

 

Can you please try this approach:

Min_Probability_Val = 
CALCULATE(
    MIN('Table'[probability_val]),
    ALLSELECTED('Table')
)
Max_Probability_Val = 
CALCULATE(
    MAX('Table'[probability_val]),
    ALLSELECTED('Table')
)

Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Hi @Sahir_Maharaj , yes it will get the minimum and maximum value. however, i would need the SINGLE value slicer input.

 

  • For example, if a user sets:
    • Min Value = 10
    • Max Value = 50
    • The dataset will only show records where the metric (probability_val) falls within 10 to 50.

hello @jeje09 

 

i might be misunderstood, but i think you can do this by using "between" slicer if you only want to show all value in between.

Irwan_0-1740783256959.png

your users can set the number they want at those minimum and maximum boxes in slicer visual.

combining with @Sahir_Maharaj 's DAX, you can show min or max value of the selection for interactive visual.

 

Hope this will help.

Thank you.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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