Forum Discussion
Anonymous
4 years agoNot applicable
Token RightParen expected problem
= Table.AddColumn(#"Added Custom", "Group of Rank Code2", each if ([RANK_CODE]="04","Manager",[RANK_CODE]="05","Manager", [RANK_CODE]="07" ,"Manager", [RANK_CODE]="08" ,"Manager", [RANK_CODE]="09" ,"...
- 4 years ago
Anonymous , I think if is not used correctly , try something like
Table.AddColumn(#"Added Custom", "Group of Rank Code2", each if [RANK_CODE]="04" or [RANK_CODE]="05" or [RANK_CODE]="07" or [RANK_CODE]="08" or [RANK_CODE]="09" or [RANK_CODE]="15" or [RANK_CODE]="16" or [RANK_CODE]="17" or [RANK_CODE]="22" or [RANK_CODE]="36" then "Manager" else "Agent")
amitchandak
Super User
4 years agoAnonymous , I think if is not used correctly , try something like
Table.AddColumn(#"Added Custom", "Group of Rank Code2", each if [RANK_CODE]="04" or [RANK_CODE]="05" or [RANK_CODE]="07" or [RANK_CODE]="08" or [RANK_CODE]="09" or [RANK_CODE]="15" or [RANK_CODE]="16" or [RANK_CODE]="17" or [RANK_CODE]="22" or [RANK_CODE]="36" then "Manager" else "Agent")