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: 
kfahri342
Contributor III
Contributor III

Percentage Subtotal

Hi All,

Is there a way to create table like this on Qlikview.

I need to be able to show the count Total and % Total of this table [i.e. the last two rows]. Is this achievable?

Many Thanks

Kozan

Name

Week 1Week 2Week 3Grand Total
Steve5050100200
John808565230
Emily206080160
Grand Total150195245590
Grand Total [%]25%33%42%100 %
15 Replies
sunny_talwar

Check the attached

Capture.PNG

Sergey_Shuklin
Specialist
Specialist

Hello, Kozan!

You can create two similar tables with different calculation of totals and place them one under the other.

kfahri342
Contributor III
Contributor III
Author

Hi this is exactly what I am looking for.

Can you explain the purpose of "dim". I don't have this value and can't figure out why you have included this in your expressions.

Cheers

sunny_talwar

Dim is created as an Inline table and is not connected to anything in your database... This is basically used to create the two Grand Total rows

Pick(Dim, Name, 'Grand Total', 'Grand Total [%]')

So, when Dim = 1, Dimension is Name

when Dim = 2, Dimension is 'Grand Total'

when Dim = 3, Dimension is 'Grand Total [%]'

Anonymous
Not applicable

If you use the pick, you can lose performance.

You can use text objects at the place of each field.

Untitled.png

sunny_talwar

Is that based on testing or you just think that Pick will reduce performance?

Also, what happens if you select a single name here? Emily... would the total % go up or down

Anonymous
Not applicable

Nice Paulo

Anonymous
Not applicable

It's real,

I already tested it in an application.

I used as pick as separated expressions... There is a lot of difference.(But I don't know explain the reasons why kkkk)


"Also, what happens if you select a single name here? Emily... would the total % go up or down"

-The total field don't move

sunny_talwar

Would you be able to share an example where you can show the performance difference between your proposed solution vs pick() method?