Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Calculated columns with multiple IF's conditions

$
0
0

Hello All ,

 

I have a scenario as below . I need to have a calculated columns with below condition as shown in the below table(Calculated columns).

 

I have used switch as below but not getting the answer:

 

Column = SWITCH(CF_Savings_Ownership[Attribute],"One year ago", CF_Savings_Ownership[page2_WT] * 1 ,
"Two years ago", CF_Savings_Ownership[page2_WT] * 2,
"More than 5 years ago", CF_Savings_Ownership[page2_WT] * 5,"null")

 

 

Attributepage2_wt                                      calculated columns
More than 5 years ago0.023(if attribute = 'one year ago ' then page2_wt * 1 ,if attribute = 'Two years ago ' then page2_wt* 2 ,If attribute = 'More than 5 years ago' then page2_wt * 5)
More than 5 years ago1.023
More than 5 years ago2.023
One year ago3.023
One year ago4.023
More than 5 years ago5.023
More than 5 years ago6.023
More than 5 years ago7.023
Two years ago8.023

 

Regards ,

Ankit


Viewing all articles
Browse latest Browse all 213819

Trending Articles