Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to add Alternate States to a variable as a parameter

Hi,

I have the following variable below.  How do I add Alternate States as a parameter to this variable.

vSpend = Sum({<$($1), BRANDLINK={'$2'}>}DISTRIBUTION_AMOUNT)

The Alternate States I have are :  Alternate1, Alternate2 and Alternate3

         

$1 - is used for period - ie YTD, MTD , etc...

$2 - are different brands

Kind regards,

Nayan

24 Replies
Anonymous
Not applicable
Author

Hi Lorenzo

Thank you for your response.   In your expression, i dont get the first part of your expression:  XYZ = 'abc'

Kind regards

Nayan

Anonymous
Not applicable
Author

Hi Sunny

Will see if i can share the model with scrambled data.

Kind regards

Nayan

Anonymous
Not applicable
Author

Ok, thanks

lorenzoconforti
Specialist II
Specialist II

That's just the condition you want to apply to switch between the two different alternate states

Anonymous
Not applicable
Author

ok, Thanks Lorenzo