Forum Discussion
ToddChitt
Super User
8 years agoSum on the Row then Columns
Seems this should be a simple exercise but it escapes me. I have a Manpower table that lists all employees. I have a table of Hours related to Manpower, where each employee will have many time entr...
- 8 years ago
You can try a measure as below. See more in the attached pbix file.
Measure = VAR sumizedTble = SUMMARIZE ( Manpower, Manpower[Depart], Manpower[EmpID], "subtotalHours", SUM ( Hours[Hours] ), "subtotalRate", SUM ( Rates[rate] ) ) RETURN SUMX ( sumizedTble, [subtotalHours] * [subtotalRate] )3*1.1+5*0.5=5.8
Eric_Zhang
Microsoft Employee
8 years agoYou can try a measure as below. See more in the attached pbix file.
Measure =
VAR sumizedTble =
SUMMARIZE (
Manpower,
Manpower[Depart],
Manpower[EmpID],
"subtotalHours", SUM ( Hours[Hours] ),
"subtotalRate", SUM ( Rates[rate] )
)
RETURN
SUMX ( sumizedTble, [subtotalHours] * [subtotalRate] )
3*1.1+5*0.5=5.8