Qlik Community

Ask a Question

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Support Cases coming to Qlik Community Oct. 4! Start chats, open cases, explore resources: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Pdmotta
Contributor II
Contributor II

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%')

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 II
Contributor II
Author

Thanks !