Forum Discussion
tejapowerbi123
Helper V
7 years agoValues comparision number to text
Hi, Can any one help for below error? In excel I have a valid price column and in that column has $amount and “Contract not started” comments, but when I try to replicate below formula in power...
- 7 years ago
The data type of column [Valid Price] cannot be whole number or decimal if you have any rows with "Contract Not Yet Started". It would have to be text. I guess you don't have any rows that have that value?
AlB
Community Champion
7 years agoIt is not allowed to compare text and numbers.
Maybe use a number code for "CONTRACT NOT STARTED", like a negative number that I guess wont come up in prices?
- tejapowerbi1237 years ago
Helper V
I tried below,
Start Date = IF([Valid Price]=" ","N","Y")
but getting the same error.
- AlB7 years ago
Community Champion
Sure, you're still doing the same, comparing a number to text.
You could use the query editor to easily replace all occurrences of your text string with a number
- tejapowerbi1237 years ago
Helper V
Hi AIB,
problem is that VALID PRICE is a calculated column and i am not able to see in QUERY EDITOR.