Forum Discussion

dwelsh's avatar
dwelsh
Icon for Advocate I rankAdvocate I
6 years ago
Solved

Apply Report Page Filter to two Source Tables

There is probably a pretty easy answer to this question, but I cannot figure out how to do it or find a solution online.  I have two transaction tables that are related by a customer field and both h...
  • dwelsh's avatar
    dwelsh
    6 years ago

    The links above didn't help me figure out how to filter Stores2 from a Store Filter.  I eventually used the below Measure to meet my needs:

     

    FilterSelection = IF(LASTNONBLANK('Stores2'[npcsto_pk],"") in VALUES('Stores'[npcsto_pk]),1,2)

     

    Then on any visual I wanted the Stores filter to apply to the Stores2 table or the tables it was related to, I would add the measure as a filter and set the filter to 1.   It works, but it does require me to enter the FilterSelection measure into every visual's filters since I cannot apply it to Page level or All pages.   I am accepting this as the solution, however if others know of a better way to do this, let me know.