Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
vineetadahiya12
Contributor III
Contributor III

I am trying to calculate % based on subtotals in pivot table in Qliksense

  In pivot table I will have Country , State  Line Amt. I need to show the % using subtotal values in qliksense

CountryStateLine Amt%

India

Delhi3030% (  (30/100)*100
Punjab4040%
Haryana3030%
USLA2525%
CA2525%
New York5050%
Total200--

I am looking something similar to  Line Amt / Sum(Line Amt) Group By Country.

2 Replies
sunny_talwar

Try this:

Sum([Line Amt])/Sum(TOTAL <Country> [Line Amt])

Varsha
Contributor II
Contributor II

I have a requirement to find percentage of subtotals.
Like in above example, I want to get sum(line amt)/ sum (line amount for all the countries),
((total for India)/(total for India and US))*100