Forum Discussion
Anonymous
7 years agoNot applicable
Summarize multiple variables
Hi, I need to calculate the standard hours per MFG_ORDER_NAME. This calculated value per individual line is OK, but the sum is incorrect. I tried summarize function but I need help ons this. ...
- 7 years ago
I would probably go with something like:
Measure Total = VAR __table = SUMMARIZE('Table',[MFG_ORDER_NAME],[DEPARTMENT],[BASIS],"__hrsStandard",[HRS STANDARD]) VAR __total = SUMX(__table,[__hrsStandard]) RETURN IF(HASONEVALUE([DEPARTMENT]),[HRS STANDARD],__total)You may have to modify the SUMMARIZE.
Ashish_Mathur
7 years agoSuper User
Hi,
Share the link from where i can download your PBI file. Also, show the expected result in a tet box there.
Anonymous
7 years agoNot applicable
- Anonymous7 years agoNot applicable
Greg,
Your solution summarizes also 4.5 hours instead of 32.85 (See measure total).
For the PBix file see: https://drive.google.com/open?id=13X8wROZ0tyUlwI3uahNAZK_Y0u7EtVSy