Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
robert_mika
MVP
MVP

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

Labels (1)
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
MVP
MVP

Hi,

one solution could be:

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

QlikCommunity_Thread_150352_Pic1.JPG

hope this helps

regards

Marco