Forum Discussion
Anonymous
5 years agoNot applicable
Dynamic total with sum and average
Dear All, i am using a Matric in Power BI desktop and i have data like below I know how to dynamically manipulate the grand total as average. but here i need total column of Uk with su...
Jihwan_Kim
Super User
5 years ago
UK sum and others avg : =
IF (
HASONEVALUE ( Countries[Country] ),
SWITCH (
SELECTEDVALUE ( Countries[Country] ),
"UK", SUM ( Data[Value] ),
AVERAGE ( Data[Value] )
)
)
Anonymous
5 years agoNot applicable
will this work if i add more sub categories in the matrix?