Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can someone help me find a code for that?
If(
getselectedcount([Month])>=2 OR getselectedcount([Year])>=2,
sum({$<[Location] -= {'790','791','793','794','795','796','797','798','799','R12086','R14030','R14031'},[APP] -= {'CE'}, [Unit of Measure] -= {'BBM'} >} AMDOL),
//else one month is selecte then
sum({$<[Location] -= {'790','791','793','794','795','796','797','798','799'},[APP] -= {'CE'} >} AMDOL))
???????
Hi Lahib,
Are you looking for this?
If(getselectedcount([MonthField])>2 OR getselectedcount([YearField])>2, do X, do Y) ?
Best regards,
-A
Exactly, what do you want do?
can this be used part of the set analysis?
If (getselectedcount([MonthField])>=2 OR getselectedcount([YearField])>=2,
SUM (X),
else
SUM (Y)
I assume you are looking for VBA?
If what?Then
Else what?
Depends...What your set analysis look like?
I am looking for Set Analysis statement like this:
//if more than one month is selected then we need to exclude [Unit of Measure] -= {'BBM'}
If ((getselectedcount([Month])>=2 OR getselectedcount([Year])>=2),
=sum({$<[Location] -= {'790','791','793','794','795','796','797','798','799','R12086','R14030','R14031'},[APP] -= {'CE'}, [Unit of Measure] -= {'BBM'} >} AMDOL),
//else one month is selecte then
=sum({$<[Location] -= {'790','791','793','794','795','796','797','798','799'},[APP] -= {'CE'} >} AMDOL)
this one is not working for me. I appreciate your help
I am looking for Set Analysis statement like this:
//if more than one month is selected then we need to exclude [Unit of Measure] -= {'BBM'}
If ((getselectedcount([Month])>=2 OR getselectedcount([Year])>=2),
=sum({$<[Location] -= {'790','791','793','794','795','796','797','798','799','R12086','R14030','R14031'},[APP] -= {'CE'}, [Unit of Measure] -= {'BBM'} >} AMDOL),
//else one month is selecte then
=sum({$<[Location] -= {'790','791','793','794','795','796','797','798','799'},[APP] -= {'CE'} >} AMDOL)
this one is not working for me. I appreciate your help
=If ((getselectedcount([Month])>=2 OR getselectedcount([Year])>=2),
sum({$<[Location] -= {'790','791','793','794','795','796','797','798','799','R12086','R14030','R14031'},[APP] -= {'CE'}, [Unit of Measure] -= {'BBM'} >} AMDOL),
sum({$<[Location] -= {'790','791','793','794','795','796','797','798','799'},[APP] -= {'CE'} >} AMDOL))