Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis and two dates Fields

Hi,

I've got in my module,

the following tables:

Item Table:

Item,

Date

Sales:

Item,

SaleDate,

Qty

I need to calculate for each item sum(Qty) where SaleDate<= Date.

I know set analysis back and forward but somehow i can't manage to do that.

Can someone know how to solve this issue?

Thnx a lot

14 Replies
Not applicable
Author

Thanks for the help,

but I've got two date fields, so i need to compare them without variables

Not applicable
Author

I understand.

So your expression would be: sum({<SalesDate = {"<=Date"}>}Qty)

Not applicable
Author

You cannot compare two different fields in set analysis. You have to use if.

Not applicable
Author

tried it and similar ups and down without a success

Not applicable
Author

Does anyone knows how to deal the issue in the script itself?

mainly because user perfomance