Forum Discussion
Summarize multiple variables
- 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.
Hi Ashish,
Tried following extra measure and dragged it into the visual. Still total is incorrect
Hi,
Share the link from where i can download your PBI file. Also, show the expected result in a tet box there.
- Anonymous7 years agoNot applicable
Hi Ashish,
Hereby the link and expected result. I rebuild the Power BI file to a document based on excel. The original file is a file based on direct query on our data warehouse which I cannot share with underlying data.
This is the link: https://drive.google.com/open?id=13X8wROZ0tyUlwI3uahNAZK_Y0u7EtVSy
- Anonymous7 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