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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.