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

Qlikview Set analsis

my data is

   

creation dateMonthcompletion dateMonthtotalsale
Jan-11Mar-1110
Feb-11Mar-1120
Mar-11Apr-1130
Apr-11Apr-1140

required out is

monthyear

  

creation datesum(totalsale)sumtotalcompletion
100100
Jan-11100
Feb-11200
Mar-113030
Apr-114070

issue: unable to calculate 'sumtotalcompletion' column.

Itried=

Sum(Total {<[Completion dateMont]={'$(=MonthNAme(Max([CATS Creation dateMonth]))'}>}[totalsale])

but not working

PFA sample.

Thanks

Raj

2 Replies
sinanozdemir
Specialist III
Specialist III

Hi Raj,

It is not the most elegant way of doing this, but I played with the data model first:

Capture.PNG

As you can see, I summed totalsale by completion dateMonth and re-named it creation dateMonth. As a result of this, the data model had the below structure:

Capture3.PNG

And in the front end, I simply utilized sum function:

Capture2.PNG

Hope this helps.

Thanks

Not applicable
Author

Ya I know above process but my real table is quite big(millions of records), so performing join will affect the load performance. So I am looking a solution by set analysis.