Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
antonrus
Contributor III
Contributor III

Calculate the sum of the week for the current year (eg 2014), but on the condition that if in this same week data were last year (2013).

Hello Help please! Need to calculate the sum of the week for the current year (eg 2014) but provided that if for that same week had data for the last year (2013). If data for the same week last year was not - sale this week should not be exposed to the sum. And painfully hard ...

13 Replies
antonrus
Contributor III
Contributor III
Author

week111
RestNumsum({<RestNum={"=sum({<Year={2013}>}, Summ) > 0"}>} Summ)
20132014
559800125 871149 113
562840229 57582 243
565250236 492105 941
590450038 485
603850077 555
0591 938453 337

I now have shows all zeros .. (I can not ask you but if still possible - attach file structure in the first message - it can accurately check all)

Not applicable

It is not possible because I have the Personal Edition (I would ahve attached it and done the test with your data)

Sorry for that

Picture 1

A pivot table with the corresponding syntax

A pivot table with Sum(Amount) to show the stucture

Picture 2

The first pivot table, I have added Sum(Amount) to show that the syntax returns 0 in that case

I cannot attach your qvw, you will be able to attach mine. That is the last sheet.

Fabrice

antonrus
Contributor III
Contributor III
Author

Seems to happen, I am very grateful to you, thank you very much! You helped me a lot!

Not applicable

you are the wellcome