Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Partner
Partner

Dim Issue

Attached please find the sample Excel and QVW fle. I have a DIm with values  A,B,C,D AND E.  I want to create a Flag  with the three values:

'Only 'E''

'No 'E''

'All Values'

I am able to get 'Only E' and 'No E' but cant get the one with All Values.

How can I accomplish that flag with 3 values

1 Solution

Accepted Solutions

Re: Dim Issue

Try this approach

Table:

LOAD Dim

FROM

[Sample.xlsx]

(ooxml, embedded labels, table is Sheet1);

LinkTable:

LOAD Distinct Dim,

'No E' as Dim_Flag

Resident Table

Where Dim <> 'E';

Concatenate(LinkTable)

LOAD Distinct Dim,

'Only E' as Dim_Flag

Resident Table

Where Dim = 'E';

Concatenate(LinkTable)

LOAD Distinct Dim,

'All Values' as Dim_Flag

Resident Table;

View solution in original post

1 Reply

Re: Dim Issue

Try this approach

Table:

LOAD Dim

FROM

[Sample.xlsx]

(ooxml, embedded labels, table is Sheet1);

LinkTable:

LOAD Distinct Dim,

'No E' as Dim_Flag

Resident Table

Where Dim <> 'E';

Concatenate(LinkTable)

LOAD Distinct Dim,

'Only E' as Dim_Flag

Resident Table

Where Dim = 'E';

Concatenate(LinkTable)

LOAD Distinct Dim,

'All Values' as Dim_Flag

Resident Table;

View solution in original post