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))
Anonymous
3 years agoNot applicable
Another take on this, applied to an [Index] column: Divide the value by the "TestMultiple" to test, then round to 0 decimals, then multilply back again and test if resulting value is equal to original value:
[Index] being any column with numbers
[TestMultiple] the factor: 3, 5, 7, etc....
Number.Round([Index]/TestMultiple,0)*TestMultiple=[Index])