Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
srujanaponnuru
Creator
Creator

calculate a ratio


the data is shown as below:

                                             

GroupCOB_QuarterTotalNSFR
ASFQ1-2015285081
ASFQ2-2015270959
ASFQ3-2015138554
RSFQ1-2015124366
RSFQ2-2015234002
RSFQ3-2015316566

the result I want is per quarter ASF/RSF in NSFR column

Please help me out.

Regards

Srujana

2 Replies
Gysbert_Wassenaar

sum({<Group={'ASF'}>}[Total])/sum({<Group={'RSF'}>}[Total])


talk is cheap, supply exceeds demand
alexandros17
Partner - Champion III
Partner - Champion III

It is better to rename the field Total into myTotal, then:

sum({<Group={'ASF'}>} TOTAL myTotal)
/
sum({<Group={'RSF'}>} TOTAL myTotal)