Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Remove error format value in query

Hi,

I have a column '공사번호' in Number format but sometimes data uploaders do errors so Text values updated which get errors. 

Is there any way I can filter out if there is any not Number values? 

 

jeongkim_0-1736411843601.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

 

Thank you very much ryan_mayu for your prompt reply.

 

Below is a detailed Power Query M code example to help you retain only the numeric values in the '공사번호' column:

 

Here's some dummy data

 

vnuocmsft_0-1736477230532.png

 

Load your dataset in Power Query.

 

In the Power Query editor, click Advanced Editor.

 

vnuocmsft_1-1736477398749.png


Add the following code:

 

#"Filtered Rows" = Table.SelectRows(Source, each Value.Is(Value.FromText([공사번호]), type number))

 

vnuocmsft_2-1736477452031.png

 

Here is the result.

 

vnuocmsft_3-1736477481507.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

 

Thank you very much ryan_mayu for your prompt reply.

 

Below is a detailed Power Query M code example to help you retain only the numeric values in the '공사번호' column:

 

Here's some dummy data

 

vnuocmsft_0-1736477230532.png

 

Load your dataset in Power Query.

 

In the Power Query editor, click Advanced Editor.

 

vnuocmsft_1-1736477398749.png


Add the following code:

 

#"Filtered Rows" = Table.SelectRows(Source, each Value.Is(Value.FromText([공사번호]), type number))

 

vnuocmsft_2-1736477452031.png

 

Here is the result.

 

vnuocmsft_3-1736477481507.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Hi, 
can we filter multiple columns in one code? 

first column '공사번호' to number format and second column '준공예정일자' to date format. 

 

 

ryan_mayu
Super User
Super User

@Anonymous 

you can try to create a new column

 

= Table.AddColumn(Source, "Custom", each try Number.From([Column1]) otherwise "")

 

11.PNG

 

then filter out the blank rows in the new column





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.