Forum Discussion
tempranello
10 years agoAdvocate I
Test for a number
Hi there I must be losing it...this seems such a simple thing to do, but I'm blowed if I can sort this out myself. I've a column of type text in a query that may or may not contain text or a ...
- Anonymous8 years ago
Worked for me. Thank you!
if Value.Is(AlphaNumeric, type text) then AlphaNumeric else Number.ToText(AlphaNumeric))
v-caliao-msft
10 years agoMicrosoft Employee
Hi Tempranell,
Please try to add a column use the power query below.
=try Number.From([ColumnA]) otherwise 0
Then convert this new created column from text to number
Then add a column using the DAX below.
Text = IF(ConvertToNumber[Number]=0,ConvertToNumber[ColumnA],"")
Reference
https://msdn.microsoft.com/en-us/library/mt253315.aspx
Regards,
Charlie Liao