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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Solution Needed in Expression...

Hello Everyone,

I have one column, 'Cause Code'. The few values of 'Cause Code' should be grouped together.

  'Data Entry Issue', 'File Missing/Deleted', 'Data Exception' ,'Data Invalid Missing' should be grouped as 'Data Issue'.

The summed values should be shown against 'Data Issue'.

Can you please suggest me? Appreciate your valued suggestions.

Thanks.

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

One option is using an if statement:

LOAD

     ...some fields...,

     if(match([Cause Code], 'Data Entry Issue', 'File Missing/Deleted', 'Data Exception' ,'Data Invalid Missing'), 'Data Issue' , [Cause Code]) as [Cause Code],

     ...some more fields...

FROM ....


Instead of arranging this in the script (as you should) you can also use the if statement as a calculated dimension.


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

One option is using an if statement:

LOAD

     ...some fields...,

     if(match([Cause Code], 'Data Entry Issue', 'File Missing/Deleted', 'Data Exception' ,'Data Invalid Missing'), 'Data Issue' , [Cause Code]) as [Cause Code],

     ...some more fields...

FROM ....


Instead of arranging this in the script (as you should) you can also use the if statement as a calculated dimension.


talk is cheap, supply exceeds demand