Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Only include dimensions that equal certain values for certain other dimensions in a table

Hi Community,  I have two dimensions.  For some values of the dimension, I only want to show if some values other the other dimensions are showing.  Is there a way do do this with set analysis, or the script loading with an if statemnt of some kind?  Any solution?

1 Solution

Accepted Solutions
Not applicable
Author

If you need make it in script and all fields are in the same table:

Table:

LOAD Field1,

          Field2,

          If(Field2 = 1 or Field2 = 2 or Field2 = 3, Field3, Null()) as Field3,

          Field4

From Data.qvd (qvd);

If you need make this in graphic dimensions then.

Dimension_1: Field2

Dimension_2: If(Field2 = 1 or Field2 = 2 or Field2 = 3, Field3, Null())

To can make it in expression by set analysis:

Dimension_1: Field2

Dimension_2: Field3

Expression: Sum({<Field2 = {1,2,3}>} Amount)

Hope this help you.

Regards.-

View solution in original post

1 Reply
Not applicable
Author

If you need make it in script and all fields are in the same table:

Table:

LOAD Field1,

          Field2,

          If(Field2 = 1 or Field2 = 2 or Field2 = 3, Field3, Null()) as Field3,

          Field4

From Data.qvd (qvd);

If you need make this in graphic dimensions then.

Dimension_1: Field2

Dimension_2: If(Field2 = 1 or Field2 = 2 or Field2 = 3, Field3, Null())

To can make it in expression by set analysis:

Dimension_1: Field2

Dimension_2: Field3

Expression: Sum({<Field2 = {1,2,3}>} Amount)

Hope this help you.

Regards.-