Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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%')

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
sunny_talwar

Or this

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

Thanks !