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,
Write this additional measure and drag this to the Table visual
=IF(HASONEVALUE(MFG_ORDER_NAME),[HRS_STANDARD],SUMX(SUMMARIZE(VALUES([MFG_ORDER_NAME]),[MFG_ORDER_NAME],"ABCD",[HRS_STANDARD]),[ABCD]))
Hope this helps.
Anonymous
7 years agoNot applicable
Hi Ashish,
Tried following extra measure and dragged it into the visual. Still total is incorrect