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

If into setAnalysis

Expression-

SUM(IF((TranTyp = 'CO' OR TranTyp = 'CB' OR TranTyp = 'DR' OR TranTyp = 'RC' OR TranTyp = 'BP' OR TranTyp = 'TR' )

     AND TranDt>=$(vFromDate), TranAmt))/1000000


Can anybody help me convert in to setanalysis


Thanks In Advance


Guidence is Appreciated..


14 Replies
shubham_singh
Partner - Creator II
Partner - Creator II

Sum(

{<

TranTyp = {'CO','CB','DR','RC','BP','TR'},

TranDt={">=$(vFromDate)"}

>}

TranAmt)/1000000

Not applicable
Author

Thanks Shubham Singh ,

when i pasted this in expression editor, it is showing

"THE SELECTIONS GENERATED NO DATA FOR THIS CHART "

why is like this , any further investigation ppleasee

Help is appreciated

Thanks in Advance

Not applicable
Author

SUM(if(TranTyp='CB' AND TranDt>=$(vFromDate), TranAmt))/

SUM(AGGR(if(DemandDate>=$(vFromDate) and DemandDate<=Today

            AND DemandDate >= MonthStart(min(TranDt)) and DemandDate <= MonthEnd(max(TranDt)), SUM(DemandAmt)),DemandDate))

can u convert this in to setanalysis shubum please..

Anonymous
Not applicable
Author

SUM ( {<TranTyp='CB',TranDt={'>=$(=Date(vFromDate,'MM/DD/YYYY'))'} >}TranAmt)


/

Aggr(Sum({$<TranDt={'>=$(=Date(vFromDate,'MM/DD/YYYY')))<=$(=Date(Today,'MM/DD/YYYY')))'}>},

        {$<DemandDate={'>=$(=Date(Monthstart(Min(TranDt)),'MM/DD/YYYY'))<=$(=Date(MonthEnd(Max(TranDt)),'MM/DD/YYYY'))'}>}      DemandDate ), DemandDate )

shubham_singh
Partner - Creator II
Partner - Creator II

Try adding an equal sign just before expression of variable vFromDate.

If that doesn't work share your vfromdate expression or a sample app.

annafuksa1
Creator III
Creator III

SUM({<TranTyp = {'CO' , 'CB' ,'DR' , 'RC','BP','TR' }, TranDt ={">=$(vFromDate)"}>} TranAmt)/1000000

shraddha_g
Partner - Master III
Partner - Master III

How did you declare vFromDate?

Not applicable
Author

DATE(IF(vFrequency = 'Y',DateCurrYearStart,

IF(vFrequency = 'Q',QuarterStart(TodayNum),

IF(vFrequency = 'M',MonthStart(TodayNum),

IF(vFrequency = 'D', Today)))))

Not applicable
Author

Above is the vFromDate