Forum Discussion
Anonymous
9 years agoNot applicable
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...
- 9 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
v-huizhn-msft
Microsoft Employee
9 years agoHi 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
Anonymous
9 years agoNot applicable
Perfect! Exactly what I needed. Thank you