Forum Discussion
SoufTC
Helper I
4 years agoSubtotals in Matrix with Hierarchy not adding up
I’m having trouble to sum totals of subcategory I have two tables. 1. A table that defines unique FaceBook pages names (repository)[Page] and the name of the person responsible for the page(repo...
- 4 years ago
Hi, SoufTC
Try measures as follows:Likes Rank = var _t=FIlter(ALL('repository'),[Last Likes]<>BLANK()) var _rank= RANKX(_t, CALCULATE([Last Likes]),,ASC,Dense) return IF([Last Likes]<>BLANK()&&HASONEVALUE(repository[Page]),_rank)Followers Rank = var _t=FIlter(ALL('repository'),[Last Followers]<>BLANK()) var _rank= RANKX(_t, CALCULATE([Last Followers]),,ASC,Dense) return IF([Last Followers]<>BLANK()&&HASONEVALUE(repository[Page]),_rank)COMMUNITY = SUMX(ADDCOLUMNS('repository',"_last rank",[Likes Rank],"_followers rank",[Followers Rank]),DIVIDE([_last rank]+[_followers rank],2))Result:
Please refer to the attachment below for details.
Hope this helps.
Best Regards,
Community Support Team _ Zeon ZhengIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PaulDBrown
Community Champion
4 years agoat is the code for [Community] & [Evolution])?
You could try the following measure:
CM = SUMX(Table1, [Score])
SoufTC
Helper I
4 years agoPaulDBrownthank you but that's not what I need at all !
- PaulDBrown4 years ago
Community Champion
It would actually help if you provided sample non-confidential data (not images - we can't work on images...) and a depiction of the expected result.
- SoufTC4 years ago
Helper I
PaulDBrown i just changed everything tell me if it is clear enough thank you in advance for your help