Forum Discussion
PowerPaul
Helper I
4 years agoWhat % did employee charge per module?
Hi, my data model has contractors who charge the project. The project contains many modules, each module has charges assiciated to it based on work performed. I would like the answer in DAX but so ...
- 4 years ago
You can create a measure like
Pct charged = DIVIDE( SUM('Table'[Charges]), CALCULATE( SUM( 'Table'[Charges]), REMOVEFILTERS('Table'[Module]) ) )and put that in a table or matrix with the employee and module columns
- 4 years ago
Ah, yes I don't think its available in Excel. Replace the REMOVEFILTERS with ALL, that should do the same thing
johnt75
Super User
4 years agoAh, yes I don't think its available in Excel. Replace the REMOVEFILTERS with ALL, that should do the same thing
PowerPaul
Helper I
4 years agoThat Worked Perfectly, thank you!
Pct charged = DIVIDE( SUM('Table'[Charges]), CALCULATE( SUM( 'Table'[Charges]), ALL('Table'[Module]) ) )