Forum Discussion

Turambar's avatar
Turambar
Frequent Visitor
3 years ago
Solved

Slider to filter only specific rows

I have a map visual with a bubble on each ID and Animal on legend. What I want to do is have a slider on Distance but have it only affect Type = Mammal. All other types should always display no matter what the slider is at but then for mammal only those within the range will show. Is this possible?

 

IDNameAnimalTypeDistance
1DaffyDuckBird5
2White FangWolfMammal25
3SlyFoxMammal10
4HedwigOwlBird3
5LizIguanaReptile7
6KermitFrogAmphibian10

 

As an example, if the slider is set for 7-15 then ID 3 should be the only mammal on the map while all other types of animals show regardless of what the slider is set to.

3 Replies

  • bcdobbs's avatar
    bcdobbs
    Community Champion

    You would need a disconnected table with the values in for the slicer.


    Use that to build the slider which won't do anything to start with.

     

    Then write a measure that returns 1 for rows to include and 0 for rows to exclude which reads the VALUES from the disconnected table and the SELECTEVALUE of the type.

     

    You can then use that measure as a visual filter.

     

    I can build a demo for you tomorow

    if you need.

     

    • Turambar's avatar
      Turambar
      Frequent Visitor

      Thanks for putting this together, I just tried it out and the slider is working exactly how I wanted on the table. I'll test it out on the real report to see if it works on the map as well but I think you've solved it