Forum Discussion
abukapsoun
3 years agoPost Patron
Matrix with different level
Hi, Need your kind support with the following: I have the following dataset, https://drive.google.com/file/d/1jI-B_Hmk-pLHH-UpLfk6ZC7r1IcAir-g/view?usp=share_link And I want to have a m...
Bifinity_75
3 years agoSolution Sage
Hi abukapsoun , try this measure:
Value2 =
var _table=SUMMARIZE(Sheet1,
Sheet1[City],
"_avg", AVERAGEX(Sheet1, Sheet1[Value])
)
RETURN
var sum_avg=SUMX(_table,[_avg])
RETURN
if(ISINSCOPE(Sheet1[City]),AVERAGE(Sheet1[Value]),
sum_avg
)
Best regards
- abukapsoun3 years agoPost Patron
hi Bifinity_75
Thank you very much! I am almost there. I can now see the total summing the values. But still one thing to go, I appreciate if you can help further with it. I have noticed, it seems the result per city is averaging all the values and not taking into consideration the following:
Final result = Average values in continent1 + Average values in continent2Thank you