Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,150 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi.
I wanted write expression in mapping dataflows equivalent to:
If
MONTH = 'Jan_23' Then Horizon_week = 'W1'
Else if
MONTH = 'Feb_23' Then Horizon_week = 'W5'
Else if
MONTH = 'Mar23' Then Horizon_week = 'W9'
Else if...
.
.
.
Else if 'Dec23' Then Horizonweek = 'W48'
I set expression in delivered column activity, but it doesn't work.
iif(MONTH == 'Jan_23','W1',iif(MONTH == 'Feb_23','W5',iif(MONTH == 'Mar_23','W9',iif(MONTH == 'Apr_23','W14',iif(MONTH == 'May_23','W18',iif(MONTH == 'Jun_23','W22',iif(MONTH == 'Jul_23','W27',iif(MONTH == 'Aug_23','W31',iif(MONTH == 'Sep_23','W35',iif(MONTH == 'Oct_23','W40',iif(MONTH == 'Nov_23','W44',iif(MONTH == 'Dec_23','W48'))))))))))))
Can anyone solve this?
Any answer would be helped.
Thank you.
I think you missed ELSE value in the Last IF statement. Thanks!
.... iif(MONTH == 'Dec_23','W48'))))....