Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
tahirkhalil
Creator
Creator

PIVOT Help - Data Presentaion

HI All,

I need a quick help in presenting data in Pivot table.

   

MOCIDStoreCodeStatus
11C
21NC
31NA
41C
51C
12C
22NC
32NA
42C
52C
13C
23NC
34NA
44C
54C
15C
25NC
35NA
45C
56C

With PIVOT table I can present the data as :

StoreCode MOCID 12345
1 CNCNACC
2 CNCNACC
3 CNC---
4 --NACC
5 CNCNAC-
6 ----C

My requirement is to present only the history of different MOCIDs for stores appearing in current MOCID. If I assume MOCID 5 is my present MOC - I need to present only data of StoreCode 1, 2, 4 and 6.

Can someone explain how can I get rid of other StoreCode not appearing in current MOCID?

See attached sample data qvw.

Regards,

TK

4 Replies
sunny_talwar

Not sure I completely understand... what is the expected output you are looking to get?

tahirkhalil
Creator
Creator
Author

Hi Sunny,

I want to include only those storecode which are part of current MOCID i.e. 5

StoreCode MOCID 12345
1 CNCNACC
2 CNCNACC
4 --NACC
6 ----C

I just want to ignore the ones that are not the part of current MOCID.

sunny_talwar

Try this

=maxString({<MOCID, StoreCode = p(StoreCode)>} Status)

tahirkhalil
Creator
Creator
Author

Yes ! Its working fine.

Thanks Sunny