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,
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.
- Anonymous7 years agoNot applicable
Hi Ashish,
Tried following extra measure and dragged it into the visual. Still total is incorrect
- Ashish_Mathur7 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.
- 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