Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How do I do this? Variable table, limiting data based on selection

I can't get this measure to work... I'm half way maybe.  Here's my code:   O QTY OD FLOW = VAR bob = SELECTEDVALUE ( DateRanges[daterangeid] ) VAR origin = SELECTEDVALUE ( 'PrimaryMarketTa...
  • Greg_Deckler's avatar
    Greg_Deckler
    3 years ago

    Anonymous With regard to your question above you can store a variable and use it as a filter in another table like:

    Measure =
      VAR __table = SELECTCOLUMNS('Table',"FilterColumn",[Column])
      VAR __filteredTable = FILTER('Table2',[Some Column] IN __table)