Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Total SUM of Multiple Values With Filters

Hello,   I have multiple columns and values that I want a mesure to SUM into one table. Below is an image of 3 tables with information such as this:   Rows: 1 QC Artist Values: Linear KM, 1 QC T...
  • v-huizhn-msft's avatar
    v-huizhn-msft
    8 years ago

    Hi Anonymous,

    Please create a new table using the following formula, which combine the different columns to one columns.

    NewTable =
    UNION (
        SELECTCOLUMNS (
            Table,
            "QC Artist", Table[1 QC Artist],
            "Linear KM", Table[Linear KM],
            "QC time", Table[1QC Time(min)]
        ),
        SELECTCOLUMNS (
            Table,
            "QC Artist", Table[2 QC Artist],
            "Linear KM", Table[Linear KM],
            "QC time", Table[2QC Time(min)]
        ),
        SELECTCOLUMNS (
            Table,
            "QC Artist", Table[3 QC Artist],
            "Linear KM", Table[Linear KM],
            "QC time", Table[3QC Time(min)]
        )
    )
    


    Then create measure like the original post, and display it in table.

    Total_Linear =
    SUM ( NewTable[Linear KM] )
    
    Total_Time =
    SUM ( NewTable[QC Time (hr)] )


    Best Regards,
    Angelia