Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Pdmotta
Contributor III
Contributor III

Percent of a City in a State

I have two Dimensions in a Table

City and State

State of course is dependent of City

When a City is selected how to obtain the sum of the selected state (I need to calculate a percent) ?

I need this in a KPI

ie , modify Sum({$}[total_sales])

thanks

 

Labels (1)
3 Replies
Anil_Babu_Samineni

May be this?

Num(Sum({$<State=P(State)>} total_sales), '#,#0%')

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

Or this

Sum({$<City, State = p(State)>} [total_sales])
Pdmotta
Contributor III
Contributor III
Author

Thanks !