Forum Discussion

AdityaG's avatar
AdityaG
Icon for Helper I rankHelper I
3 years ago
Solved

How to append calculated columns in a new table using DAX?

Hi all, I created different tables to calculate as the algorithms were different.   First Team Calculated column A fafsdf 26 sdfds 29 eerere 16 ojoj 27   Second Team Ca...
  • Greg_Deckler's avatar
    3 years ago

    AdityaG Try:

    Final Column = 
      VAR __Team = [Overall team]
      VAR __Value1 = MAXX( FILTER( 'Team 1 Table', [First Team] = __Team ), [Calculated column A] )
      VAR __Value2 = MAXX( FILTER( 'Team 2 Table', [Second Team] = __Team ), [Calculated column B] )
      VAR __Value3 = MAXX( FILTER( 'Team 3 Table', [Third Team] = __Team ), [Calculated column C] )
      VAR __Result = MAX( MAX( __Value1, __Value2 ), __Value3 )
    RETURN
      __Result