Forum Discussion
AdamOrmond
8 years agoFrequent Visitor
Cannot get desired Matrix visualization subtotals and totals
I'm working on building a matrix visualization showing employee time expenditures against assigned contract hours. For instance, Jennifer Smith has been assigned hours across three contracts. Each da...
- 8 years ago
Hi, review the Attached PBIX Page 4. Is very close of the expected result.
Regards
Victor
Vvelarde
Community Champion
8 years ago
Hi, try with this measure:
M-ContractHours.Assigned Hours =
IF (
HASONEVALUE ( TimeCardContractHoursMerged[Date] ),
BLANK (),
AVERAGE ( TimeCardContractHoursMerged[ContractHours.Assigned Hours] )
)Regards
Victor
AdamOrmond
8 years agoFrequent Visitor
Unfortunately that does not produce the desired output. It does show the average value for the day, 25 for Jennifer/Alpha, but the total values for the employee and across all employees do not add up. This is the desired result looks something like this for Jennifer Smith:
| Employee | Hours Worked | Assigned Hours | |
| Jennifer Smith | 115 | 85 | |
| Alpha | 18 | 25 | |
| Friday, May 4 | 10 | ||
| Saturday, May 5 | 8 | ||
| Beta | 32 | 20 | |
| Monday, May 7 | 7 | ||
| Monday, May 8 | 6 | ||
| Monday, May 9 | 11 | ||
| Delta | 33 | 40 |
- Vvelarde8 years ago
Community Champion
Hi, review the Attached PBIX Page 4. Is very close of the expected result.
Regards
Victor
- AdamOrmond8 years agoFrequent Visitor
Thanks, Vvelarde! The TREATAS function was what I needed.