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: 
Not applicable

Different scenario

Hi Team,

I have following kind of data.

   

EmpIssueKeyPkey
JuleeLDTa113a112
JohnWorkeda112

I want count against Emp ( dimension: Emp). It should be counted when Key is exist in Pkey when issue LDT only on name of john.

6 Replies
Anil_Babu_Samineni

Would i know expected output from given data

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Emp Issues ( Count)

Julee 0

John 1

Anil_Babu_Samineni

May be this expression


Count(DISTINCT {<Pkey = {''}>} Key)

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vishsaggi
Champion III
Champion III

May be this? Not sure if that works with more data. Just let us know.

LOAD *, IF(Key = Previous(Pkey), 1, 0) AS KeyCnt INLINE [

Emp, Issue, Key, Pkey,

Julee, LDT, a113, a112

John, Worked, a112

];

Use straight table and

Dim: Emp

Expr: Keycnt

Capture.PNG

Not applicable
Author

No.

I mean when pkey is exist in key then it should counted 1 on name who worked on that. Should not counted who Lost.

2. It's not exactly above or below the record. It can be any line @vishwanath

Anil_Babu_Samineni

Try this? Count({<Key=P(Pkey)>} Pkey)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful