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: 
nareshthavidishetty
Creator III
Creator III

set analysis

Hi ,

My expression is sum(sales) but i need to modify that as sum(sales) from vYesterday to vPast varisbles.

Thanks..

7 Replies
sunny_talwar

Can you provide more information? What is vYesterday? What is your date field? It's format... etc etc

Dates in Set Analysis

nareshthavidishetty
Creator III
Creator III
Author

HI ,

Please find below.

vYsterday = date(today()-1,'M/D/YYYY');

vPast = date(today()-28,'M/D/YYYY');


Where Date=Today


Thanks..

Anonymous
Not applicable

Sum({$<Date={'>=$(=Date(vPast, 'M/D/YYYY'))<=$(=Date(vYsterday, 'M/D/YYYY'))'}>} Sales)

nareshthavidishetty
Creator III
Creator III
Author

Hi,

It's not working..

Thanks..

Anonymous
Not applicable

what is date field name ?

nareshthavidishetty
Creator III
Creator III
Author

Field Name =Date

Thanks..

Anonymous
Not applicable

Sum({<Date = {">=$(=Date(Today()-28,'MM/DD/YYYY'))<=$(=Date(Today()-1,'MM/DD/YYYY'))"} } Sales)

Or

Sum({<Date = {">=$(=Date(Today()-28,'M/DD/YYYY'))<=$(=Date(Today()-1,'M/DD/YYYY'))"} } Sales)




I have doubt on your    "Date"  field format ...