Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Segmenter with multiple filtering options

Hello, capos good evening..

a crazy idea came to the head and I do not know if it is possible to take it .. what I want to do is that in the same segmenter it gives me several filtering options and that it can filter cluster 1 but without considering Geos, the same would happen if I filter Brazil and I want to consider Geos within its values.

This could be done with two segmenters one that filters the cluster first and then in the other territory segmenter remove Geos, but it is not a good way to do it since this is like it is very efficient for me.

More or less follow this theme. a single segmenter with multiple filtering options that says:

o Cluster 1 with Geos

o Cluster 1 with out Geos

o Cluster 2 with Geos

I have 3 tables like these that I have related by plant.

Alexgamb20_0-1644712971514.png

Cluster Territory Plant Value

Cluster 1AndinarColombia 25.00
Cluster 1AndinarEcuador 59.00
Cluster 1AndinarPeru 76.00
Cluster 1MexicoMexico 60.00
Cluster 1AndinarVenezuela 58.00
Cluster 1PRICESNicaragua 64.00
Cluster 1PRICESGuatemala 51.00
Cluster 1GEOSGeos Colombia 78.00
Cluster 1GEOSGeos Mexico 2.00
Cluster 2BrazilJoinville 49.00
Cluster 2BrazilDos Santos 54.00

I leave the table in case someone would like to help me 😞

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Syndicate_Admin ,

     

    If you want to filter your table visual by one slicer with selection "Cluster 1 with Geos"/"Cluster 1 with out Geos" and so on, you can create a table with selection values you need then create a measure to filter your visual.

    Filter = {"Cluster 1 with Geos","Cluster 1 without Geos","Cluster 2 with Geos","Cluster 2 without Geos"}

    Measure:

    Measure = 
    SWITCH(
    SELECTEDVALUE('Filter'[Value]),
    "Cluster 1 with Geos",IF(MAX('Table'[Cluster]) = "Cluster 1",1,0),
    "Cluster 1 without Geos",IF(MAX('Table'[Cluster]) = "Cluster 1"&&MAX('Table'[Territory])<>"GEOS",1,0),
    "Cluster 2 with Geos",IF(MAX('Table'[Cluster]) = "Cluster 2",1,0),
    "Cluster 2 without Geos",IF(MAX('Table'[Cluster]) = "Cluster 2"&&MAX('Table'[Territory])<>"GEOS",1,0),
    1)

    Build a table visual , then add this measure in visual level filter field and set it to show items when value =1.

    Best Regards,
    Rico Zhou

     

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

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Syndicate_Admin ,

     

    If you want to filter your table visual by one slicer with selection "Cluster 1 with Geos"/"Cluster 1 with out Geos" and so on, you can create a table with selection values you need then create a measure to filter your visual.

    Filter = {"Cluster 1 with Geos","Cluster 1 without Geos","Cluster 2 with Geos","Cluster 2 without Geos"}

    Measure:

    Measure = 
    SWITCH(
    SELECTEDVALUE('Filter'[Value]),
    "Cluster 1 with Geos",IF(MAX('Table'[Cluster]) = "Cluster 1",1,0),
    "Cluster 1 without Geos",IF(MAX('Table'[Cluster]) = "Cluster 1"&&MAX('Table'[Territory])<>"GEOS",1,0),
    "Cluster 2 with Geos",IF(MAX('Table'[Cluster]) = "Cluster 2",1,0),
    "Cluster 2 without Geos",IF(MAX('Table'[Cluster]) = "Cluster 2"&&MAX('Table'[Territory])<>"GEOS",1,0),
    1)

    Build a table visual , then add this measure in visual level filter field and set it to show items when value =1.

    Best Regards,
    Rico Zhou

     

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Syndicate_Admin ,

       

      Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file without sensitive data.


      Best Regards,

      Rico Zhou