Forum Discussion
C4L84
4 years agoAdvocate II
Addcolumn with if statement
Hi community, I'm looking for some help with an ADDCOLUMN expression. I need to add a new column called "RevenueType" in the BookingStatus table which groups BookingCodes A, R, H and CX as "C...
Ivn_rmr
3 years agoNew Member
Hi, I know it has been a while since you posted your question. Did you come across with any solution? I am having the same issue.
tamerj1
3 years agoCommunity Champion
Hi Ivn_rmr
Please explain your issue perhaps I can help.
With regard to this particular question, I can see that SpartaBI already provided a workable solution. However, the request of using ADDCOLUMNS function as per C4L84 is not clear as ADDCOLUMNS returns a table not a scalar value.