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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Concat dates with condition

Good day!

In attached model i calculate in one pivot table sum(quantity by Spoints), in second - concat dates where sum(quantity)>30

But result is wrong.

Expected result:

Spoint1: 23-09-2014, 25-09-2014

Spoint2: 22-09-2014, 23-09-2014, 24-09-2014, 25-09-2014

Thanks!

1 Solution

Accepted Solutions
maxgro
MVP
MVP

=concat( if(aggr(sum(Quantity),Spoint,Date)>30, Date), ', ')

1.png

View solution in original post

4 Replies
senpradip007
Specialist III
Specialist III

Try like

=concat({<Quantity={">30"}>}DISTINCT Date,', ')

maxgro
MVP
MVP

=concat( if(aggr(sum(Quantity),Spoint,Date)>30, Date), ', ')

1.png

aveeeeeee7en
Specialist III
Specialist III

Hi

Try this expression:

=concat ( IF( aggr ( (sum(Quantity)),Spoint,Date)>30,Date),',')

Also, see the Attachment.

Hope that helps.

Regards

Aviral Nag

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Concat(Aggr(If(Sum(Quantity) > 30, Date), Date, Spoint), ', ')

HTH

Jonathan

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