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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
WalidChoukri
Contributor III
Contributor III

adding a specific value to a straight table

Hello everyone,

I have a table as shown in the screenshot below :

WalidChoukri_0-1614679646082.png

I'm trying to sum the quantity of a specific date ( 01/02/2021) to all the other field, i tried the following but i didn't get the results I'm looking for

WalidChoukri_1-1614680102755.png

Can you guys help me, i just need the results either in the script or in the front end.

Thank you so much,

1 Solution

Accepted Solutions
WalidChoukri
Contributor III
Contributor III
Author

I found a solution, I should've just sum the total aggregated the data for 01/02/2021 (aggregated by Family):

sum( Quantity ) + sum( {< Date={'01/02/2021'} >} Total <Family> Quantity )

 

View solution in original post

3 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

WalidChoukri
Contributor III
Contributor III
Author

Thank you for your reply, however that's not exactly what i'm looking for the expression Sum(total <Date> Quantity) will show the sum of all quantity of a date disregarding the family, what i really want is a way to save the quantity of an exact date (01/02/2021) of each family and add it to the other rows depending on which family they belong to.

In the qlikview that i shared the values i'm looking to use are 30(family A) and 35(family B) 

Sum(total {<Date ={'01/02/2021'} >} Quantity) will result 65

WalidChoukri_0-1614692633096.png

The final result I'm looking for is adding the sum(quantity) where the date is 01/02/2021 and family A to all the other rows where the family is A. and same thing for Family B.

Thank you so much for your help.

WalidChoukri_1-1614692918770.png

 

 

 

 

WalidChoukri
Contributor III
Contributor III
Author

I found a solution, I should've just sum the total aggregated the data for 01/02/2021 (aggregated by Family):

sum( Quantity ) + sum( {< Date={'01/02/2021'} >} Total <Family> Quantity )