Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Karim_Khan
Creator III
Creator III

Total and SubTotal calculation

Hi Team,

  I wanted to show the  Total of the current [Sales Level 1 ] and at the end it should show the sum of All [Sales Level 1].

I will pass the selection on [Sales Level 2].Am able to calculate the first two field.But I am unable to get the %.

Sales Level 2Customer CountBookings% BookingsAvg Deal Size
Total7424222457000.89.41%33225.42844
CANADA63120932019.929.41%33225.42844
LATIN AMERICA74129788670.259.41%33225.42844
US COMMERCIAL409858816212.469.41%33225.42844
US ENTERPRISE549517371379.41%33225.42844
US OTHER35475872.929.41%33225.42844
US PS MARKET SEGMENT140255707088.249.41%33225.42844

As per above Table am able to calculate Customer Count and Bookings.Now I want % Bookings which should show correctly as per

Calculation.

Bookings=Total/Sales Level 2

But its capturing only CANADA value in all Field which is wrong.I want the correct % Bookings value for remaining sales Level 2 also.

E.g :

If I select [Sales Level 1 ]  AMERICAS.Then it should show the calculated % bookings value for [Sales Level 2 ]  in the above table.


Expression for % Bookings as follow


=sum({$<[Fiscal Year] = {$(=only([Fiscal Year]))},[Month in Fiscal Year] = {'<=$(=only([Month in Fiscal Year]))'},CATEGORY={'IOT'},[Sales Level 1]=, [Sales Level 2]={$(vSel2)}>} [Net Bookings])/sum({$<[Fiscal Year] = {$(=only([Fiscal Year]))},[Month in Fiscal Year] = {'<=$(=only([Month in Fiscal Year]))'},CATEGORY={'IOT'},[Sales Level 2]=, [Sales Level 1]={$(vSel1)}>} [Net Bookings])


Regards,

KK


MRKachhiaIMPjaganKush141087gwassenaar

KK
2 Replies
settu_periasamy
Master III
Master III

Hi Karim,

Can you give the expected output for the above selection?

Karim_Khan
Creator III
Creator III
Author

HI Settu,

  PFB

Sales Level 2Customer CountBookings% Bookings
6958222457000.8100%
CANADA63120932019.929.41%
LATIN AMERICA74129788670.2513.39%
US COMMERCIAL409858816212.4626.44%
US ENTERPRISE5495173713723.26%
US OTHER35475872.922.46%
US PS MARKET SEGMENT140255707088.2425.04%
KK