Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Filters on a 100%stacked bar

Hi,

I created a 100% stacked bar using the below formula:

sum( Value) /sum(total <[Title role]> Value)

I now need to apply filters on other dimension to select a particular value for the chart.

sum(=sum({$<[Location]= {"USA"}> }Value) / sum(total <[Title role]> Value) but this does not provide correct values.

i need to apply filters in 2 different dimensions like this but i am not able to figure out.

Any help is much appreciated. Thanks

1 Solution

Accepted Solutions
sunny_talwar

May be like this:

=Sum({$<[Location]= {"USA"}, FieldName = {'Condition'}>}Value)/Sum({$<[Location]= {"USA"}, FieldName = {'Condition'}>} TOTAL <[Title role]> Value)

View solution in original post

4 Replies
Anil_Babu_Samineni

This??

sum({$<[Location]= {"USA"}> }Value) / sum(total {$<[Location]= {"USA"}> } <[Title role]> Value)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anil_Babu_Samineni

Or This

sum({$<[Location]= {"USA"}> }Value) / sum(total <[Title role]> Value)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

May be like this:

=Sum({$<[Location]= {"USA"}, FieldName = {'Condition'}>}Value)/Sum({$<[Location]= {"USA"}, FieldName = {'Condition'}>} TOTAL <[Title role]> Value)

Anonymous
Not applicable
Author

Thanks! You have been a great help