Forum Discussion
elif
4 years agoFrequent Visitor
If statement doesn't work
Hello, I have a problem with IF statement which is not working perfectly, do you have any idea why it is not working very well? is grater = VAR maxtable1 = CALCULATE(MAX('Date'[Date]),USERELATI...
amitchandak
Super User
4 years agoelif , If this is a column, this will not work
POS Type NEW = IF([is grater] = 1, "NPI", 'Product'[POS type])
It needs to be a measure
example
POS Type NEW = IF([is grater] = 1, "NPI", max('Product'[POS type]) )