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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Read only rows when the values of a particular column could be a instance of type int

Hello all,

 

I wonder if is possible to read in load data process, only the rows in which a column could be an instance of type int, and not read them when that column cannot be converted.

 

For example, I have the folowing columns. I want to focus in column "Quantity":

 

Product name     Quantity     

A                          "50"

B                          "100"

C                          "hello"

 

The third value of "Quantity", cannot be converted to int.

 

Is possible to read only rows that could be converted to int? In this scenario, get only the firsts two rows?

Product name     Quantity     

A                          "50"

B                          "100"

 

Thanks a lot.

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1680485649891.png

First change the data type of column [Quantity]:

vjianbolimsft_1-1680485706426.png

If the value of the column is not int type, error will occur

Then remove error rows:

vjianbolimsft_2-1680485848919.png

Final output:

vjianbolimsft_3-1680485867330.png

Best Regards,

Jianbo Li

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

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1680485649891.png

First change the data type of column [Quantity]:

vjianbolimsft_1-1680485706426.png

If the value of the column is not int type, error will occur

Then remove error rows:

vjianbolimsft_2-1680485848919.png

Final output:

vjianbolimsft_3-1680485867330.png

Best Regards,

Jianbo Li

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

Anonymous
Not applicable

Thank you very much for taking your time to generate the example 🙂

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors