Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Vinni2000
Contributor III
Contributor III

Aggregation expressions required by group by Clause in Applymap function

Order:

Load 

Locationnumber, 

Ordernumber,

Locationnumber &'-'&Ordernumber as po_number,

Itemnumber,

Voidind 

From qvd;

 

VoidMap:

Mapping Load 

po_number,

If(IsNull(Voidind),'not voided','voided') as voidstatus,

Resident Oder

Group by po_number;

Order1:

LOAD 

*,

ApplyMap('VoidMap',po_number,'Not voided') as orderstatus

Resident Order;

Drop table Order

 

 

 

 

 

 

 

1 Solution

Accepted Solutions
rubenmarin

Hi, if there is a group by you need an aggreation expression for the fields not included in the group by clause, like:

Mapping Load 

po_number,

If(IsNull(Max(Voidind)),'not voided','voided') as voidstatus,

Resident Oder

Group by po_number;

You can also use maxstring if Voidind is a text.

View solution in original post

1 Reply
rubenmarin

Hi, if there is a group by you need an aggreation expression for the fields not included in the group by clause, like:

Mapping Load 

po_number,

If(IsNull(Max(Voidind)),'not voided','voided') as voidstatus,

Resident Oder

Group by po_number;

You can also use maxstring if Voidind is a text.