Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Percentage using calculated field

Hi

I wanted to divide the Grand Total divided by Personal Total.The same has to be repeated for the remaining rows also. plz suggest?

I Capture.PNG

17 Replies
Chanty4u
MVP
MVP

what do you want to show?

Anonymous
Not applicable
Author

Hi Chanty

I want the Percentage of the Pivot Grand Total(i.e 48261) divide by PERSONAL(i.e 21021) and so on....

the same concept for the remaining PERSONAL,IRA & OTHER Category.

Chanty4u
MVP
MVP

try this

simple way

sum(Value2)/ sum(total Value1)

Anonymous
Not applicable
Author

what is value 2 and value 1 in this case.

Capture.PNG

Anonymous
Not applicable
Author

I have created the rows by using the calculated field(i.e PERSONAL,IRA,OTHER etc).So I am looking for the division between those calculated fields as I mentioned before.plz suggest

giakoum
Partner - Master II
Partner - Master II

You have been given the answer already:

Divide your expression with the same expression just adding the total identifier

OmarBenSalem

It would be sum(total yourExpression) / sum( total <"Account Type..">yourExpression)

OmarBenSalem

If you want it to only be diveded by the value of personal and be propaged to every single row:

sum(total yourExpression) / sum( total {<"Account Type.."={'Personal'}>}yourExpression)