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.
Ashish_Mathur
3 years agoSuper User
Hi,
In the Query Editor, select all columns other than Main Worked and Assistant, right click and select Unpivot Other columns. Rename the Atribute column as Employees. Drag the Employees column to the visual and write this measure
Measure = sum(Data[%Defecto])
Hope this helps.