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

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
marteeke
Contributor II
Contributor II

Sum where a field matches a combination of another field and text

Hi everyone,

I'm trying to sum based on where a field matches a combination of another field with added text.

I've used the code below in a text-object, which shows as 113 (which is the value i want). Vertrekdag is 1.

Vertrekdag&'13'

 

When i try my sum like this it works;

=Sum({<RouteNr = {'113'})>} AantalBesteld)

 

However when i combine those two  in the sum below it doesn't work.

=Sum({<RouteNr = {Vertrekdag&'13'})>} AantalBesteld)

 

It's probably something with formatting but i'm not sure what to search for and haven't found examples close to this.

 Thanks!

 

 

1 Solution

Accepted Solutions
sunny_talwar

Try this

=Sum({<RouteNr = {"$(=Vertrekdag&'13')"}>} AantalBesteld)

View solution in original post

4 Replies
arulsettu
Master III
Master III

maybe like this

assuming  Vertrekdag  =1

=Sum({<RouteNr = {'Vertrekdag'})>} AantalBesteld)&'13'

 

arulsettu
Master III
Master III

can you share sample app to check
sunny_talwar

Try this

=Sum({<RouteNr = {"$(=Vertrekdag&'13')"}>} AantalBesteld)
marteeke
Contributor II
Contributor II
Author

Great, this works!

Thanks for the quick reply.
I had been trying things close to that but apparantly i didn't get it right.