Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
G_Hofstedt
Contributor
Contributor

Some help with set

Hi

I have this expression. sum({<Month=, Year = {"$(#=max(Year))"}, MonthNr= {1,2,3,4,5,6} >} Sale)

Now I want to exclude some transactions that can be backdated. The transaction have a UTYP = 201 and INSDATE larger then Max(Year) Month 07 and Day 03.

How can I include that exclude-expression in the set?

2 Replies
Anil_Babu_Samineni

You can exclude like -= in your set analysis

I would ask you to create this statement in script, I assume INSDATE has Year Values if not you may create Year(INSDATE) as Year and then use Year direct rather INSDATE for condition

If(UTYP <> '201', If( INSDATE > Max(TOTAL Year), If( Month <> '07' , If(Day <> '03', 'Exclude', 'Include') as FieldName


And then some thing like this for set expression

sum({<Month=, Year = {"$(#=max(Year))"}, MonthNr= {1,2,3,4,5,6}, FieldName -= {'Exclude'} >} Sale)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar