Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
avishaiz
Contributor III
Contributor III

Problems with sum

Hi

i have a data set of production that i am doing some calculation and i need to show the sum by month

here is the data sample:

         

PRDDATEPRODPOOLITEMIDQTYSCHEDQTYGOODTIMENORMALIZATIONTIME/NORMALIZATION
PRD0006735201/01/2017205D26-02GNPC-001223056
PRD0006735601/01/2017205D26-02GNPC-001113056
PRD0006849601/01/2017205CR3000000-01BTXH-0195951553
PRD0007096502/01/2017205D26-04A1XH-001303060512
PRD0007096801/01/2017205D26-04A1XF-001404060512
PRD0007104102/01/2017325RP500-34BTN5-006200200150.6722.39
PRD0007118301/01/2017205CR2000000-06G0NB-01551553
PRD0007118502/01/2017325RP500-34BTN5-006200200150.6722.39
PRD0007133802/01/2017205CR3000000-10R0XH-01441553
PRD0007252402/01/2017205NR4020NS-02NTPR-0025050551
PRD0007282901/01/2017100252-050002NR-FG200117505
PRD0007320502/01/2017200242-2606PC-FF12036551
PRD0007329901/01/2017205D26NS-06R2XH-0012260512
PRD0007349401/01/2017205VB60-12N1XI-00411050

when i try to get the sum of prodpool by month i cant seem to get it when i remove the PRD from the table

DATE by MONTHPRODPOOLQTYSCHEDQTYSCHED*TIME/NORMALIZATION
JAN 20172014,63027,089
JAN 20173031,21549,977
JAN 2017327,67148,764

can someone help?

16 Replies
Not applicable

Hi,

For straight table, Take Date as Dimension and sum(PRODPOOL) as expression ( you can add more expression like sum(QTYSCHED), etc). You can change the date format.

You can remove the grand total from expression tab, goto Total mode and check No total for each expression.

 

DATEPRODPOOLQTYSCHED
294950
1/1/2017150346
2/1/2017144604
OmarBenSalem

What's your question?

What is wrong?

What is your current output? And what do you expect to have?

kkkumar82
Specialist III
Specialist III

Can you give your qvf file or explain in detail whats your expected

avishaiz
Contributor III
Contributor III
Author

when i do a table that has the field PRD i get the calculation for each PRD and also the sum

when i try to get a table that sums the total QTYSCHED*TIME/NORMALIZATION with for each month i cant get the total sum.

i removed the PRD from that table so i can get the total but than for some reason it does not work.

avishaiz
Contributor III
Contributor III
Author

im trying to get this:

DATE by MONTHPRODPOOLQTYSCHEDQTYSCHED*TIME/NORMALIZATION
JAN 20172014,63027,089
JAN 20173031,21549,977
JAN 2017327,67148,764
OmarBenSalem

Like this?

Capture.PNG

avishaiz
Contributor III
Contributor III
Author

attached the qvf

avishaiz
Contributor III
Contributor III
Author

for some reason it does not work in the qvf

check the attached file

OmarBenSalem

Maybe you've written

(QTYSCHED*TIME)/NORMALIZATION

instead of :

(Sum(QTYSCHED)*sum(TIME))/sum(NORMALIZATION)

?