Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Relate Horizontal Columns with List

Hi all,

 

I have a list of time-stepped data and I'm trying to create a slicer so that I can filter the data without having to drag and drop it each time. I can't think of a way to create a relationship without having to create a singular relationship for each field? Example Below:

 

Table 1

DayBasin ABasin BBasin C

3/1/20

146
3/2/20324
3/3/20543
3/4/20216

 

 

Table 2

Basins
Basin A
Basin B
Basin C
  • Hi,

    In the Query Editor, right click on the first column on Table1 and select "Unpivot other columns".  Now create a relationship (Many to One and Single) between Table2 and the Attribute column of Table1.

    Hope this helps.

5 Replies

  • Hi,

    In the Query Editor, right click on the first column on Table1 and select "Unpivot other columns".  Now create a relationship (Many to One and Single) between Table2 and the Attribute column of Table1.

    Hope this helps.

    • Anonymous's avatar
      Anonymous
      Not applicable

      I couldn't have said it better myself!

    • Anonymous's avatar
      Anonymous
      Not applicable

      worked great, I had over 20 basins, but was able to select them all and unpivot at the same time, thank you so much!

  • Anonymous's avatar
    Anonymous
    Not applicable

    I would denormalize Table 1 if possible (unpivot the Basin A, Basin B, and Basin C columns), then connect the two tables via a 1:n relationship on Basin.

    Denormalized Table 1