Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
robert_mika
Master III
Master III

CONCAT with Aggr

Having this INLINE set

LOAD * Inline

[

Month,Group,val

1,A,1

2,A,2

3,A,3

1,B,4

2,B,5

3,B,6

1,C,7

2,C,8

3,C,9]

I'm, getting

15/24/6

when evaluating

CONCAT(Aggr( sum(val), Group))

The number are right but (and please correct me here) should not that be

6/15/24

3 Replies
anbu1984
Master III
Master III

CONCAT(Aggr( sum(val), Group),'/',Aggr( sum(val), Group))

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I think concat uses load order, so I would have expected to see A/B/C in your results. You can ensure the load order by doing an inline load of just Group, in the required order, before you load the detail. The first load of a field determines the load order. That might work.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
MarcoWedel

Hi,

one solution could be:

=CONCAT(Aggr( sum(val), Group),'/',FieldIndex('Group',Group))

QlikCommunity_Thread_150352_Pic1.JPG

hope this helps

regards

Marco