Forum Discussion

MikeModaff's avatar
MikeModaff
New Member
4 years ago

Dynamically Filter Visualization Based On Look-Up Table

Hi Everyone,

This is my first post and I'm new to PowerBi so please excuse any lack of understanding on my part!

I have 2 data tables that I'm building my report off of, we'll call them:

1. Data_Dump_Table

2. Look_Up_Table

Table 1 contains metrics on many different products, and Table 2 contains the filters I would want to use for my visualizations depending on which product is selected. See example tables below.

The report itself would contain 2 visualization (line charts), 1 for each metric, and a dropdown box.

 

Table 1 Data_Dump_Table

Product NameItem NumberLevelMetric 1Metric 2
A11001050
A12001560
A21001151
A22001758
B11501253
B12251958
B2150955
B22251661

 

Table 2 Look_Up_Table

Product NameMetric 1 LevelMetric 2 Level
A100200
B150225

 

The plan is:

- I select a product in the dropdown box (Example, product "A" is selected)

   - Visualization 1: Now contains all product A Metric 1 data

   - Visualization 2: Now contains all product A Metric 2 data

- Based on Table 2, I want to further filter down my two visualizations

   - Visualization 1: Should only contain Metric 1 data at "Level" 100

   - Visualization 2: Should only contain Metric 1 data at "Level" 200
And you can see that the "Level" which needs to be filtered at changes based on which Product is chosen.

 

So, I want to dynamically filter my visualizations based on a look up table.

 

Any help would be greatly appreciated, thank you!

5 Replies

  • "

    I select a product in the dropdown box (Example, product "A" is selected)

       - Visualization 1: Now contains all product A Metric 1 data

       - Visualization 2: Now contains all product B Metric 2 data "

     

    Please explain the reasoning behind the last statement.

    • MikeModaff's avatar
      MikeModaff
      New Member

      Hi, Sorry it was a typo which I've now edited!

      Both visuals will show "Product A" data. 

      • lbendlin's avatar
        lbendlin
        Super User

        Have you worked with SELECTEDMEASURE  yet?