Forum Discussion
Matrix Table Total Row not calculating totals
- Anonymous9 years ago
kingchad5,
Please change your DAX to the following:
AvailableHrsbyDay4 = IF(COUNTROWS(VALUES(wh_resource[Name]))=1,
IF([Scheduled Hrs]>=0 && [Scheduled Hrs] < 9,9-[Scheduled Hrs],0),
SUMX(VALUES(wh_resource[Name]), IF([Scheduled Hrs]>=0 && [Scheduled Hrs] <9,9-[Scheduled Hrs],0)
))
Regards,
I needed to update the Table1[Name] reference to a table I have, but I think I need to reference the Scheduled Hrs table, but that is a meausre not a Column. when I added just a table name to the VALUE function i get close, but I beleive when the IF is FALSE the data returned is incorrect. What Table1[Name] should I be referencing?
What Table1[Name] should I be referencing?
kingchad5,
The Name field of your table.
Regards,
Lydia Zhang
- kingchad59 years ago
Helper I
Thanks for all your help with this!
That got the numbers correct, but the total is still off. The total is 16 where it should be 11
Current forumla;
AvailableHrsbyDay4 = IF(COUNTROWS(VALUES(wh_resource[Name]))=1,
IF([Scheduled Hrs]>=0 && [Scheduled Hrs] < 9,9-[Scheduled Hrs],0),
SUMX(VALUES(wh_service_call), IF([Scheduled Hrs]>=0 && [Scheduled Hrs] <9,9-[Scheduled Hrs],0)
)) - Anonymous9 years agoNot applicable
kingchad5,
Please change your DAX to the following:
AvailableHrsbyDay4 = IF(COUNTROWS(VALUES(wh_resource[Name]))=1,
IF([Scheduled Hrs]>=0 && [Scheduled Hrs] < 9,9-[Scheduled Hrs],0),
SUMX(VALUES(wh_resource[Name]), IF([Scheduled Hrs]>=0 && [Scheduled Hrs] <9,9-[Scheduled Hrs],0)
))
Regards, - kingchad59 years ago
Helper I
This worked! Thanks for all your help.