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: 
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

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
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
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
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
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