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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

i have 6 rows, i want to divide them into 2 groups (direct, indirect), how can I achieve this?

i have 6 rows, i want to divide them into 2 groups (direct, indirect), how can I achieve this?

11 Replies
sinanozdemir
Specialist III
Specialist III

Hi Raghu,

Can you post an example data set?

jagan
Partner - Champion III
Partner - Champion III

Hi,

Post some sample data so that it would be easier to provide the solution.  How the rows are identified into two different groups?  If you have a group column then add it to the chart.

Regards,

Jagan.

avinashelite

Hi Raghu,

Please post the sample app with data and the output format you require, so that it will be helpful for us to understand .

Not applicable
Author

   A                        B

OEMIndirect
1 TierIndirect
DirectDirect
MSPIndirect
2 TierIndirect
FMDirect
UsageIndirect

I want to all the rows in column A to be grouped in 2 groups( Direct, Indirect).

sinanozdemir
Specialist III
Specialist III

I think you can achieve this in two ways:

In the load script, with Wildmatch:

Capture.PNG

Or in the front end with Wildmatch:

Cap2.PNG

Hope this is what you are looking for.

Not applicable
Author

I used the second method, but the output is direct for both the cases

q.PNG

jagan
Partner - Champion III
Partner - Champion III

Hi Raghu,

It is a good practice to load it as a separate table and like below

ActualData:

LOAD

A,

,

,

FROM DataSource;

MappingTable:

LOAD

*

INLINE [

A ,                       B

OEM,Indirect
1 Tier,Indirect
Direct,Direct
MSP,Indirect
2 Tier,Indirect
FM,Direct
Usage,Indirect

];

If you want you can also use mapping load instead of Mapping table, check Qlikview help file for Mapping Load concept.

Hope this helps you.

Regards,

Jagan.

Anonymous
Not applicable
Author

A variation of the same which adds B into the original data:

ActualData:

LOAD

A,

,

,

FROM DataSource;

LEFT JOIN (ActualData)

LOAD

*

INLINE [

A ,                       B

OEM,Indirect
1 Tier,Indirect
Direct,Direct
MSP,Indirect
2 Tier,Indirect
FM,Direct
Usage,Indirect

];

Not applicable
Author

Thanks Michael.