Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum from a different table

nameticket_numberquantitydate
ruth96152013-10-18
alisa96202013-10-18
megan5452013-10-19
ruth1022013-10-19

I have done this easily on mysql (Select sum(quantity) from buyer where ticket_number=winner_table.winner_number) but is giving me a hell here because I'm somewhat new.


datefirst_place_ticketsecond_place_ticketthird_place_ticket
2013-10-18962575
2013-10-19545474

What Im trying to do:

I need to sum the quantities of winner tickets given a date and store it on a field and/or variable, for example (on the day 18 they were a total of 35 tickets of the number 96, 0 of 25 and 0 of 75.

So I can get something like:

datefirst_winner_quantitysecond_winner_quantitythird_winner_quantity
2013-10-183500

What I've already tried:

A user of this forum gave me a great solution (THANK YOU AGAIN)....It was a straight table but sadly when a try to implement it to my problem I just sum the quantity of ALL the tickets from that day instead of the winner one only.

I'll attach the customers.csv, winner_tickets.csv and .qvw file with the example I got from here (INLINE) and my failure attempt to emulate that.

I've weeks trying to accomplish this by my own please help me

1 Solution

Accepted Solutions
Not applicable
Author

Hi Richard,

Please find attached.

regards,

GowriShankar

View solution in original post

2 Replies
Not applicable
Author

Hi Richard,

Please find attached.

regards,

GowriShankar

Not applicable
Author

I have no words to describe my gratitude to you.

Thank you very much