Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Highlighted
Not applicable

Aagregation in QV script

Hello, I am trying to Load below Summary table in QV but it is showing error as Invalid Expression ...

Summary: Load Queue as Q,

SubCategory as S,

Month as M,

Week as W,

If(RAG_Status='R',count(RAG_Status)) as R,

If(RAG_Status='A',count(RAG_Status))as  A,

If(RAG_Status='G',count(RAG_Status))as G

Resident L2_Data group by Queue,SubCategory,Month,Week;

The RAG Status column has 3 values R A and G. Please suggest me the correct syntax.

1 Solution

Accepted Solutions
er_mohit
Honored Contributor II

Re: Aagregation in QV script

Try this

Load Queue as Q, SubCategory as S,

Month as M, Week as W,

count( If(RAG_Status='R',RAG_Status)) as R,

   count(If(RAG_Status='A',RAG_Status))as  A,

   count(If(RAG_Status='G',RAG_Status))as G

   Resident A group by Queue,SubCategory,Month,Week;

2 Replies
er_mohit
Honored Contributor II

Re: Aagregation in QV script

Try this

Load Queue as Q, SubCategory as S,

Month as M, Week as W,

count( If(RAG_Status='R',RAG_Status)) as R,

   count(If(RAG_Status='A',RAG_Status))as  A,

   count(If(RAG_Status='G',RAG_Status))as G

   Resident A group by Queue,SubCategory,Month,Week;

Not applicable

Re: Aagregation in QV script

Thanks It Worked..