Forum Discussion

nareshr89's avatar
nareshr89
Helper II
3 years ago
Solved

Virtual Table

I need a help creating a virtual table where Table 1 and Table 2 have same column names. I want the certain columns to add up the values, meanwhile the remaining column to remain same. Sample tables...
  • tamerj1's avatar
    3 years ago

    Hi nareshr89 
    Please try

    New Table =
    GROUPBY (
        UNION ( Table1, Table2 ),
        [ML],
        [Region],
        "TR", SUMX ( CURRENTGROUP (), [TR] ),
        "OR", SUMX ( CURRENTGROUP (), [OR] ),
        "FTEs", SUMX ( CURRENTGROUP (), [FTEs] )
    )