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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
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.