Forum Discussion
Dynamic total with sum and average
UK sum and others avg : =
IF (
HASONEVALUE ( Countries[Country] ),
SWITCH (
SELECTEDVALUE ( Countries[Country] ),
"UK", SUM ( Data[Value] ),
AVERAGE ( Data[Value] )
)
)
Jihwan_Kim i mean what if i have states, cities and county level drill down fields in the matrix? the same measure will work for the low granularity level values?
- Jihwan_Kim5 years ago
Super User
Hi,
Thank you for your feedback.
Can you share your sample pbix file? I think it depends on how your model looks like, and also it depends on how the countries - states - cities are related.
- Anonymous5 years agoNot applicable
Jihwan_Kim thnaks for valuable time in looking into this issue.
i dint understand your question.
country will be linked to state and state will be linked to city.
when we expand the country in matrix, there will be states appear in that case our DAX measure we wrote for country how it will be impact the state level data in the same matrix?