Forum Discussion
Nested IF Statement with math on column
- 8 years ago
I was able to get it to work, had to apply a FORMAT expression on the last part:
DateStampMonth New = IF(RIGHT('Marketing Snapshot'[DateStampMonth],2)="01",LEFT('Marketing Snapshot'[DateStampMonth],4)-1&13,FORMAT('Marketing Snapshot'[DateStampMonth],"General Number"))
Hi gsed99,
Did you use this formula as a calculated column?
Because I have tried it and it worked...
Let us know...
Hmmm, I get an error saying "Expressions that yield varian data-type cannot be used to define calculated columns."
Can you paste the formula that worked for you?
- gsed998 years agoHelper III
I was able to get it to work, had to apply a FORMAT expression on the last part:
DateStampMonth New = IF(RIGHT('Marketing Snapshot'[DateStampMonth],2)="01",LEFT('Marketing Snapshot'[DateStampMonth],4)-1&13,FORMAT('Marketing Snapshot'[DateStampMonth],"General Number"))