Forum Discussion
Subtotals in Matrix with Hierarchy not adding up
- 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.
at is the code for [Community] & [Evolution])?
You could try the following measure:
CM = SUMX(Table1, [Score])
- SoufTC4 years agoHelper I
I just changed my post thanks
- PaulDBrown4 years agoCommunity Champion
You could try the following measure:
CM = SUMX(Table1, [Score])
- SoufTC4 years agoHelper I
PaulDBrownthank you but that's not what I need at all !
- PaulDBrown4 years agoCommunity 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 agoHelper I
PaulDBrown i just changed everything tell me if it is clear enough thank you in advance for your help