Forum Discussion

farina_dj's avatar
farina_dj
Regular Visitor
4 years ago

Advanced filter options from different source.

Hi Community, good day,

I'm a bit stuck in a solution I need to produce for an odd situation.

I'd like to ask your help to see if it's possible what I'm trying to do, please.

 

My main table is a list of Events, similar to this:

Event Customer Severity
x1c1Info
x2c1Warning
x3c2Critical
x4c3Info


Now I need to add the information Areas where the event happened because the user wants to filter by them. It's in a new table, registered like this:

 

IDEventArea
1x1Zone 1
2x1Zone 2
3x2Zone 1
4x3Zone 1

 

As you can see the relationship between Events and Areas will be 1 - N. So if I just do a direct join (or merge) it will bring duplicate records for events. That is exactly what I need to prevent, but I also need to add the filter by Areas in the dashboard.

I did try to concatenate them first to have a 1-1 relationship but the filter becomes like:

 

Which is not good, because these values can vary among many types of areas and happen simultaneously in many. We could have for example |Zone B, Floor 2|, |Zone B, Floor 4, Zone 1|, etc.

Although we have the Advance Filter, using the option "contain" and then filtering by a term, the users don't necessarily know all the names of the areas that it can be to insert the correct term.

 

So the question is. Is there programmability that makes a filter give the options from a different source table (for example with all the areas) and applies it against the main table with a "contains" clause? Or if there is another solution that I'm not seeing, please.

 

I really appreciate the attention, thanks.

 

8 Replies

    • farina_dj's avatar
      farina_dj
      Regular Visitor

      Hi Greg_Deckler , thanks for the answer. 
      I might be missing something. A slicer needs a field to filter right? But as the relation is 1 - N, it's duplicating the events. If I go for making the relationship 1-1 by concatenating the areas in a event, I have that ugly filter like:

       

      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        farina_dj I'm not understanding something. If the relationship is Events 1:N Areas and you create a slicer based on the Event column in Events and create a slicer based on the Area column of Areas then when you select an Event in that slicer then the Area slicer will only display areas for that Event.