Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajitha1
Contributor III
Contributor III

How to do Resident load from Inline load

Hi Team,

I did Inline load i.e.

Load * INLINE [
Selector,SelectorId
Per NSR%,1
Per MT,2
];

from that Inline load how to do Max(SelectorId) as SelectNum1.

Thanks,

Rajitha

Labels (1)
1 Solution

Accepted Solutions
ManuelRühl
Partner - Specialist
Partner - Specialist

mruehl_0-1700635451321.png

 

For me it works............ 🤔

Manuel Rühl
www.mamaconsulting.de

View solution in original post

9 Replies
ManuelRühl
Partner - Specialist
Partner - Specialist

Hi,

Try this:

InlineTable:
Load * INLINE [
Selector,SelectorId
Per NSR%,1
Per MT,2
];
 
Max:
LOAD
MAX(SelectorId) as SelectNum1
RESIDENT InlineTable;

 

Manuel Rühl
www.mamaconsulting.de
Rajitha1
Contributor III
Contributor III
Author

Rajitha1_0-1700634658168.png

 

Its not working

ManuelRühl
Partner - Specialist
Partner - Specialist

Did you name the initial inline table "InlineTable"?

Manuel Rühl
www.mamaconsulting.de
Rajitha1
Contributor III
Contributor III
Author

Yes. I did the same

InlineTable:
Load * INLINE [
Selector,SelectorId
Per NSR%,1
Per MT,2
];

Max:
LOAD
MAX(SelectorId) as SelectNum1
RESIDENT InlineTable;

ManuelRühl
Partner - Specialist
Partner - Specialist

mruehl_0-1700635451321.png

 

For me it works............ 🤔

Manuel Rühl
www.mamaconsulting.de
Rajitha1
Contributor III
Contributor III
Author

I need 3 columns in 1 table. I tried below one but it throws error.

 

Gross_Contribution1:
Load * INLINE [
Selector,SelectorId
Per NSR%,1
Per MT,2
];

Gross_Contribution:
Load *,
Max(SelectorId) as SelectNum1

Resident Gross_Contribution1;

Drop Table Gross_Contribution1;

ManuelRühl
Partner - Specialist
Partner - Specialist

Could you please provide some more information?

Manuel Rühl
www.mamaconsulting.de
Rajitha1
Contributor III
Contributor III
Author

I need 3 columns in 1 table means Selector,SelectorId,SelectNum1 . I tried below one but it throws error.

 

Gross_Contribution1:
Load * INLINE [
Selector,SelectorId
Per NSR%,1
Per MT,2
];

Gross_Contribution:
Load *,
Max(SelectorId) as SelectNum1

Resident Gross_Contribution1;

Drop Table Gross_Contribution1;

ManuelRühl
Partner - Specialist
Partner - Specialist

OK, can you please provide the desired output-Table?
Do you need the Max(SelectorID) per Selector or over all?

 

Manuel Rühl
www.mamaconsulting.de