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: 
woolsu
Contributor
Contributor

Qlik month moves including deletions

Hoping someone could point me in the right direction of how to best do what I'm after.

1.  I have some monthly data:

Date, ID_Type1, ID_Type2, Type2_Name & Value

2.  I need to show (a) a summary and (b) a granular aggregation by date and type 2 id.  For each month, I additionally need to know for each of the entries based upon ID_Type1 and ID_Type2 if it is NEW, EXISTING or DELETED for the month (compared to the previous) - so I need the deletions too to explain the moves.  I have previously done this in excel VBA, but would like to see if we can use Qlik for such reporting directly from the data itself.

Based upon my example data, the summary table I would like is:

DateValue Change Value MoM Change EXISTING Change NEW Change DEL
31/12/2020159,423,689159,423,6890159,423,6890
31/01/2021207,373,07847,949,38847,634,8829,792,231-9,477,725
28/02/2021140,117,086-67,255,991-45,275,7907,340,156-29,320,358
31/03/2021167,903,13527,786,04930,948,6987,084,940-10,247,589
30/04/2021119,671,023-48,232,113-36,746,2962,939,899-14,425,715

 

And some of my granular output is:

DateID_TYPE2TYPE 2 NAMEValue Change Value MoM Change EXISTING Change NEW Change DEL Absolute Change Value MoM
30/04/20210000000003NAME 3     68,254,921-                 26,327,819-           24,192,126                         -  -   2,135,693                                 26,327,819
30/04/20210000000135NAME 135           472,651-                 11,091,161-             9,921,515               4,434-   1,174,080                                 11,091,161
30/04/20210000000004NAME 4       8,951,205                     6,539,633                 7,110,851                         -  -       571,218                                   6,539,633
30/04/20210000000110NAME 110                   863-                   6,415,304-             6,415,304                         -                         -                                     6,415,304
30/04/20210000000125NAME 125               5,187-                   5,700,826-             3,478,680                   449-   2,222,595                                   5,700,826
30/04/20210000000089NAME 89       4,450,843-                   4,604,171-             4,604,355                   269-                 85                                   4,604,171
30/04/20210000000103NAME 103           774,977-                   3,357,742-             2,741,695                   742-       616,790                                   3,357,742
30/04/20210000000009NAME 9             49,277-                   1,847,990-                   810,319             39,389-   1,077,059                                   1,847,990
30/04/20210000000104NAME 104       3,624,610-                   1,813,771-             1,813,771                         -                         -                                     1,813,771
30/04/20210000000140NAME 140             37,671-                   1,744,666-                   963,384                         -  -       781,282                                   1,744,666
30/04/20210000000197NAME 197               4,761-                   1,507,931-             1,507,931                         -                         -                                     1,507,931
30/04/20210000000189NAME 189       1,485,442                     1,287,816                 1,287,816                         -                         -                                     1,287,816
30/04/20210000000132NAME 132           411,107-                   1,239,838-             1,241,268               1,514-                 83                                   1,239,838
30/04/20210000000093NAME 93       1,199,670                     1,038,801                 1,038,833                         -  -                 31                                   1,038,801
30/04/20210000000137NAME 137               1,396-                       914,958-                   914,958                         -                         -                                           914,958
30/04/20210000000010NAME 10             56,704-                       907,379-                   908,197                   841-                 23                                         907,379

 

Can anyone point me in the right direction on how to do this?  Should I be doing any of this on loading? 

I'm currently trying to evaluate Qlik for future use, so any help would be greatly appreciated.  I couldn't see how to saved Qlik files, so some text answers would be appreciated.

0 Replies