Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

cumulative investment to start date selected period

In Set analysis

// cumulative investment to start date selected period

sum({$<
           
AsOfDate ={<min(AsOfDate)},        // everything before the minimum date
              Class_07={'AW'}                  // only the acquisition values
           >
            } Grootboekmutaties_Bedrag)

  What would be the correct formula?

5 Replies
PradeepReddy
Specialist II
Specialist II

sum({$<AsOfDate ={"<$(=max(AsOfDate))"}, Class={'AW'}>} Grootboekmutaties_Bedrag)

Chanty4u
MVP
MVP

Sum({$<AsOfDate ={'$(=Min(AsOfDate ))'},Class_07={'AW'}>}[Grootboekmutaties_Bedrag])

Sum({$<AsOfDate ={'$(=Max(AsOfDate ))'},Class_07={'AW'}>}[Grootboekmutaties_Bedrag])>}[Close]) for current

Chanty4u
MVP
MVP

sry  remove close in abve second exp


Sum({$<AsOfDate ={'$(=Max(AsOfDate ))'},Class_07={'AW'}>}[Grootboekmutaties_Bedrag])>}

Not applicable
Author

Both scripts work

The formula only works with <= and doesn't work with <

How can I use < in set analysis?

This statement works for <=

 

sum({$<AsOfDate ={"<=$(=max(AsOfDate))"}, Class_07={'AW'}>} Grootboekmutaties_Bedrag)

 

But for <?

jagan
Luminary Alumni
Luminary Alumni

Hi,

sum({$<YearFieldName=, QuarterFieldName=, MonthFieldName=,AsOfDate ={'<=$(=Min(AsOfDate))'},       
              Class_07={'AW'}              
           >} Grootboekmutaties_Bedrag)



YearFieldName=, QuarterFieldName=, MonthFieldName= ignores selections in this fields.


Hope this helps you.


Regards,

jagan.