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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Dhinesh
Contributor
Contributor

Question on Creating a Pivot table

I have data like below and i need to create a pivot. 

ID MonthAdded_falg Removed_flag Removed_Month type
11Anullnull1
21Anull null1
31nullR21
42Anullnul1
52Anullnull1
12NCR31
22NCR31
43NCnullnul1
53NCnullnull1

I have to get result as

TypeM1 TotalM1 Added (added_flag as A)M1 RemovedM2 TotalM2 AddedM2 RemovedM3 netM3 addedM3 Removed
1320421202

 

Previous month count of 'R' (removed_flag) to be tagged to next month. Ex. M1 -R records to be counted as part of M2 Removed (We have a column removed month which represent M2)

But i can able to plot as ..new to qlik and any help should be appreciated. 

in SQl, i have union 'R' records with removed_month as month and can able to get the output.

TypeM1 netM1 Added (added_flag as A)M1 RemovedM2 netM2 AddedM2 RemovedM3 netM3 addedM3 Removed
1321422200
Labels (2)
0 Replies