Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Folks,
While data cleaning using the power query, I came across a situation where a column contains both text and numerical values. I want to add an additional column that states which one is number or text. In Excel, we have ISNUMBER() or ISTEXT(). Do we have any alternative in Power Query? Below is an Excel screenshot, an alternative of which want in Power Query.
Solved! Go to Solution.
@Anonymous
like what @CNENFRNL suggested, you can try
if Value.Is([data],type number)
then "Number"
else "Text"
Proud to be a Super User!
@Anonymous
like what @CNENFRNL suggested, you can try
if Value.Is([data],type number)
then "Number"
else "Text"
Proud to be a Super User!
Hi,
It is not working when you have column type text - then results is always Text,
It works when you first get valuefrom text, and then check type.
Thanks @QooT,
I was having this issue and even though my column data type was "Any", for whatever when PowerQuery parsed in the data everything became a string, so even values of 123 were resulting in Text, however your adjustment to the formula fixed this, so thanks!
IsNumber
--------
= if Value.Is(Value.FromText([--column-name-here--]), type number)
then "Y"
else "N"
Hi, @Anonymous , you may try Vaue.Is function,
https://docs.microsoft.com/en-us/powerquery-m/value-is
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 123 | |
| 99 | |
| 67 | |
| 49 |