Forum Discussion
Aucesar
3 years agoHelper III
DAX Calculation Help
Hi Community another day, another challenge 🙂 Need to acomplish this calculation...thanks for any help in advance! Date MainWorker Assistant TotalItens DefectoiTens %Defecto Desired...
- 3 years ago
Calculation = var helperTable = UNION( SELECTCOLUMNS(ALL('Table'), "workers", 'Table'[MainWorker], "defecto", 'Table'[%Defecto]), SELECTCOLUMNS(ALL('Table'), "workers", 'Table'[Assistant], "defecto", 'Table'[%Defecto]) ) return SUMX(FILTER(helperTable, [workers] = SELECTEDVALUE('Table'[MainWorker])), [defecto])Hope this helps.
vicky_
3 years agoSuper User
Calculation =
var helperTable = UNION(
SELECTCOLUMNS(ALL('Table'), "workers", 'Table'[MainWorker], "defecto", 'Table'[%Defecto]),
SELECTCOLUMNS(ALL('Table'), "workers", 'Table'[Assistant], "defecto", 'Table'[%Defecto])
)
return SUMX(FILTER(helperTable, [workers] = SELECTEDVALUE('Table'[MainWorker])), [defecto])Hope this helps.