Forum Discussion

AndyTrezise's avatar
AndyTrezise
Advocate IV
8 years ago
Solved

Create Table using a measure

I'm trying to create a table based on another table by filtering using a measure.   Table2 = VAR SeletedYear = IF ( COUNTROWS( ALLSELECTED( TimeSet[Year] ) ) = 1, VALUES(TimeSet[Year]), BLANK())...
  • eniX's avatar
    eniX
    8 years ago

    You define calculated tables with DAX but they are not dynamic. Basic workaround could look like this:

    • Reference your original table twice
    • Create calculated column
      • For the second table with year - 1
      • For the third table with year - 2
    • Create look-up table for years

     

    Now you can create slicer out of your look-up table and slice all three tables: