Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
srini
Creator
Creator

YTD Calculation by column wise!!

Hi Friends,

I am struggling to calculate the YTD for the below data in qlik Sense. In Excle simply they used SUMIF to calculate the YTD.

But when I try to get the same in qlik sense I am not able to get... I am struggling... I have mentioned the result YTD also in the below table. Can some one help it would be really helpful. 

I have tried with earlier posts in the community but most of them are for row wise... and not useful for my case. 

My mind is not working with some extend 😞

 

 

CountryM01 UnitsM02 UnitsM03 UnitsM04 UnitsM05 UnitsM06 UnitsM07 UnitsM08 UnitsM09 UnitsM10 UnitsM11 UnitsM12 UnitsYTD
XYZ000.52903000000000 0.52903
ABC100000000000 1
def0-10000000000 -1
jkl0.37500000000000 0.375
mnop0.37500000000000 0.375
sdfg0.37500000000000 0.375
erty0.37500000000000 0.375
mnhu00.2559180.028435000000000 0.284353
hytr000.568707000000000 0.568707

 

 

Thanks in advance!

34 Replies
sunny_talwar


@srini wrote:
Hi Sunny, I hope it is there in the attachment with previous posts.

I am not sure which of the many posts you have contains the information. I want to help, but I am not sure what exactly you mean and unless I understand what you mean, I won't really be able to offer much help.

srini
Creator
Creator
Author

Let me put it simple, how could I have this result as new field in script: Sum({} Units) I need this to be a new field. The above I will use in the attached data then I need to use the result as a new field for another table. 

 

Thanks!

 

 

srini
Creator
Creator
Author

when I use the same logic and script with one of my other report, I am getting different out put. code: Test1: Load "Cycle Year", "Cyclename", // "Governance Group", // "Product Line", // "GPDM Portfolio", // "GPDM Programme", // "POB ID", // "POB Name", // "BP Priority", "BP ID (for filtering)", // "BP Name", Month(Date#(Num(TextBetween([Month],'M',' Uni')),'MM')) as [Month], Num(Month(Date#(Num(TextBetween([Month],'M',' Uni')),'MM'))) as [MonthNum], Units out put:

sunny_talwar

Please create a new thread for a new requirement

srini
Creator
Creator
Author

done Sunny! expecting your advise