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 agoYou 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
- PowerPaul4 years ago
Helper I
Thanks for the reply, I dont have the function Removefilters. Perhaps because I am using excel and not power bi?
- johnt754 years ago
Super User
Ah, yes I don't think its available in Excel. Replace the REMOVEFILTERS with ALL, that should do the same thing
- PowerPaul4 years ago
Helper I
That Worked Perfectly, thank you!
Pct charged = DIVIDE( SUM('Table'[Charges]), CALCULATE( SUM( 'Table'[Charges]), ALL('Table'[Module]) ) )