Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello,
I have a scenario where I need to remove all columns of the data type integer from the table.
I need to do this in Powerquery and can not do it manually.
This is what im currently using:
= Table.RemoveColumns(#"Changed Type",Table.ColumnsOfType(#"Table1", {Int64.Type}))With this string of code I'm able to remove date or text formatted columns by changing the value from Int64.Type to type text or type date.
But for some reason when I use Int64.Type it removes both decimal numbers as well as integers. The same happens if i try and use type number. For some reason it seems that Table.ColumnsOfType() is unable to differentiate between the two.
Does anyone know if this is intended or what the syntax would be if i want to remove just integer columns?
Also, the above code does not appear to work after you have used the Table.TransformColumnTypes() function on the column. If anyone knows why this is I'm really curious! 🙂
Br,
Johannes
Solved! Go to Solution.
HI, @tex628
I also did a lot of testing, It seems that Int64.Type, Percentage.Type, and Currency.Type have no difference with type number in Table.ColumnsOfType().
I'm afraid it is difficult to achieve in Power query for now. If you could do it manually or do it in the datasource.
Best Regards,
Lin
HI, @tex628
I also did a lot of testing, It seems that Int64.Type, Percentage.Type, and Currency.Type have no difference with type number in Table.ColumnsOfType().
I'm afraid it is difficult to achieve in Power query for now. If you could do it manually or do it in the datasource.
Best Regards,
Lin
I managed to achieve the end goal through a different method, not related to this at all. But it's good to know how it is so thanks for the insight! I hope that this might be implemented in the future as it would be a very helpfull function!
Br,
Johannes
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 30 | |
| 26 | |
| 26 |