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: 
Not applicable

How can I access the totals sum of a grid column?

I have a grid

A   B

1   1/(1+2+3)

2   2/(1+2+3)

3   3/(1+2+3)

how can I get the desired results of column 'B' by using formulae, value of 'A' are coming from expressions so they keeps on changing.

Any thoughts?

Best Regards,

Gaurav Tyagi

13 Replies
Not applicable
Author

u can use this formule..for B field

B=A/Sum(A)

Not applicable
Author

your query will give

1/1

2/2

3/3

MayilVahanan

Hi

= A/ sum(total A)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

I am using few variables and conditions to calculate the expression of A.

But thanks for the reply I will use it somewhere else.

I am using variables now. Because I am taking some dynamic values by user.

Best Regards,

Gaurav Tyagi

sujeetsingh
Master III
Master III

Variables are good options...

But in a simple way you can Total=sum (A) in load script and simply use ...as B =A/Total

Not applicable
Author

Yup I am using them

but your formula wont work in a grid coz as the dimension value will change the value of sum(A) will change with it

my equations are lil complex now, I have figured out how to do it, if anyone wanna know then I can write them here for u.

Have a nice day

Gaurav Tyagi

sujeetsingh
Master III
Master III

Gaurav i have asked you to calculate it in script.....got it or you can have a variable..as u used ..

Not applicable
Author

Hi Gaurav,

Can you please share your solution equations?  I have a similar situation and can use some help.


Thanking in advance,

Anthony

Not applicable
Author

Hi Gaurav,

Can you please share your solution equations?  I have a similar situation and can use some help.


Thanking in advance,

Anthony