Forum Discussion

rbreneman's avatar
rbreneman
Helper II
5 years ago
Solved

Help with Union DAX

Hi!   I'm trying to create a calculated table that consists of some static text and measures. The measures show the correct values when I put them into a card, however when I'm creating a calculate...
  • Greg_Deckler's avatar
    5 years ago

    rbreneman Solution attached below sig. First, the reason it wasn't working is that your calculated table was not taking into account the slicer selections (row context instead of filter context because it is a table). So, the solution is essentially the disconnected table trick:

    1. Create a disconnected table with your values, Building, District, etc.
    2. Create a Measure2Show that depending upon the MAX of your disconnected table, return the appropriate measure