Hi Guys,
I'm starting with PowerBI and I need some help with a formula. (calculated column)
Maybe my formula is very much excel like, and that's why I go wrong...
Formula:
Error:
I don't know why this is resulting in an error. Columns "Customer Description" & "Type" are both in text format.
What the formula does:
If column Customer Description = Export then blank
If column Customer Description = not Export then, or if type = ACT 2017, or month = this month and week is < then current week, then column HL.
Can anyone help?
I'm starting with PowerBI and I need some help with a formula. (calculated column)
Maybe my formula is very much excel like, and that's why I go wrong...
Formula:
Code:
Column = IF([Customer Description] = "Export";"";IF(OR([Type] = "ACT 2017";AND(MONTH([Calendar day]) = MONTH(TODAY());WEEKNUM([Calendar day]) < WEEKNUM(TODAY())));[HL];""))
Error:
Code:
Expressions that yield variant data-type cannot be used to define calculated columns.
I don't know why this is resulting in an error. Columns "Customer Description" & "Type" are both in text format.
What the formula does:
If column Customer Description = Export then blank
If column Customer Description = not Export then, or if type = ACT 2017, or month = this month and week is < then current week, then column HL.
Can anyone help?