Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
nikolis_gr
Contributor III
Contributor III

Load rows with lower value per dimensions

Hi community,

I have a table (table_A) which has 3 columns: ID,Resource, Value

It is populated with data like below:

ID     Resource     Value
1             A                  50
1             B                 100
25           F                 120
25           C                 120
..
23           G                   7
23           G                   7

I am trying to create a new table during load which will contain the lower Value and the Resource per ID with this but it is now working:

NoConcatenate
table_B:
LOAD ID,
FirstSortedValue(TOTAL <ID,Resource> Resource ,Value) as Rsrc
Resident table_A
group by TRUNK_ID;

 

Any help?

1 Solution

Accepted Solutions
sunny_talwar

May be this

NoConcatenate
table_B:
LOAD ID,
      FirstSortedValue(DISTINCT Resource, Value) as Rsrc
Resident table_A
Group By ID;

View solution in original post

1 Reply
sunny_talwar

May be this

NoConcatenate
table_B:
LOAD ID,
      FirstSortedValue(DISTINCT Resource, Value) as Rsrc
Resident table_A
Group By ID;