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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jumiprado
Creator
Creator

Finding Multiple Pattern values

Hey Guys, I have this information

 

IdNameObjectSub ObjectDateLocationStageStatePerson In charge
1115/02AAAA1Ob01SubOb0101/02/2002CSS 1S1St1Jhon
23785/02BBBB2Ob01SubOb0203/05/2002CSS 2S1St2Marie
456/03CCC1Ob02SubOb0115/01/2003CSS 1S2St2Paul
3523/04AAAA1Ob02SubOb0104/10/2004CSS 3S1St1Paul
5879/05AAAA1Ob01SubOb0120/09/2005CSS 4S2St2Marie Jane

 

And i need to have something like this

First of all this info:

NameObjectSub ObjectQuantity
AAAA1Ob01SubOb012
AAAA1Ob02SubOb011
BBBB2Ob01SubOb021
CCC1Ob02SubOb011

 

And other table with

 

NameObjectSub ObjectInformation
AAAA1Ob01SubOb01Already Exists
AAAA1Ob02SubOb01Not Exists
BBBB2Ob01SubOb02Not Exists
CCC1Ob02SubOb01Not Exists

 

 

Thanks!

Labels (3)
1 Reply
dplr-rn
Partner - Master III
Partner - Master III

See script below for for the first table. with regards to the second table i dont understand the intent/logic behind it. but on face value you can just add a new column to table 2 like below

TestData:
LOAD
    Id,
    Name,
    Object,
    "Sub Object",
    "Date",
    Location,
    Stage,
    State,
    "Person In charge"
FROM [lib://Downloads/Test.xlsx]
(ooxml, embedded labels, table is Sheet1);
Data:
LOAD
    Name,
    Object,
    "Sub Object",
     Count(Id) as Quantity,
if(Count(Id)>1,'Already Exists','Not Exists') as Information resident TestData Group By Name, Object, "Sub Object"; drop table TestData;

Capture.jpg