Forum Discussion
SUM total for allselected values
- 8 years ago
Thank you to alexei7Anonymous, Due to a bit of differences in my model the allselected would have worked however for my model the following resolved my issue:
Calculate(
SUM(LOOKUP[User]),
ALL(FACT[Country]))
I made a table with countries and a value for each contry. the following measure should solve your problem
Measure = CALCULATE ( SUM ( Table1[Value] ), ALLSELECTED ( Table1[Country] ) )
- orangeatom8 years ago
Resolver I
Hello alexei7, Anonymous
That seems to work when I look at my matrix and remove the row however when the row is included in the matrix, it shows the users per site:
I think a better way to word my goal is to calculate the percent of total selected
Current layout:
Site, User, TotalUser, Contribution
Canada, 10, 10, 100%,
America, 10, 10, 100%,
Brazil, 10, 10, 100%,
Intended layout:
Site, User, TotalUser, Contribution
Canada, 10, 30, 33%,
America, 10, 30, 33%
Brazil, 10, 30, 33%
I'm not sure if this would also make a difference but my model is as follows:
A fact table with performance (SiteFK) <-> Dimension table with countries (SiteSK, CountryFK) <-> Lookup table of country/users (CountrySK)
- alexei78 years ago
Continued Contributor
Are you able to share a version of your model (obviously removing any sensitive data that you need to)?
I don't really understand your model from what you've said.
Thanks
Alex
- orangeatom8 years ago
Resolver I
Hello alexei7, Yes certainly, i'm working on it and send a note.