Reputation: 836
I have a really basic excel spreadsheet imported into PowerBI. Here is the data in powerBi
The response column will have either text a number in it. I need an additional column to covert it to either a number or return blank.
This is the formula i currently have:
Column = IF(ISNUMBER(Sheet1[Response]),VALUE(Sheet1[Response]),BLANK())
This always returns blank, and ISNUMBER(Sheet1[Response])
or ISNUMBER([Response])
always returns false.
Any ideas where i am going wrong here.
Upvotes: 1
Views: 74
Reputation: 187
Well, I had this problem and clumsily did this, but it worked.
Column = IFERROR(value([response]),blank())
Upvotes: 2
Reputation: 1534
Adding the value
to the if
statement will resolve number stored as text:
Column = IF(ISNUMBER(value(Sheet1[Response])),VALUE(Sheet1[Response]),BLANK())
Upvotes: 0