Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all, i am pretty new to power BI and I am encontering a lot of little questions all the time.
For example, I have 2 data providers that come from URL (Web) to extract sales. The incomvenient is that the column structure of both tables will differ every time i refresh as it is possible that one of both has no sales data, causing different header names.
Long story short, I need to remove and / or select the columns regardless of their name with the same instruction for both queries. The advanced editor shows this command:
#"Removed Columns" = Table.RemoveColumns(Data0,"Column1"}). Here Column1 is removed.
Is it possible to index the columns and make it look sth like this?:
#"Removed Columns" = Table.RemoveColumns(Data0,1}),
Thanks a lot and best regards!!!
Solved! Go to Solution.
I don’t think there is such a command according to Table.RemoveColumns. You can try with another alternative, first transposed table and then remove first row, transposed table at last.
#"Transposed Table" = Table.Transpose(Table2_Table), #"Removed Top Rows" = Table.Skip(#"Transposed Table",1), #"Transposed Table1" = Table.Transpose(#"Removed Top Rows")
Best Regards,
Herbert
I don’t think there is such a command according to Table.RemoveColumns. You can try with another alternative, first transposed table and then remove first row, transposed table at last.
#"Transposed Table" = Table.Transpose(Table2_Table), #"Removed Top Rows" = Table.Skip(#"Transposed Table",1), #"Transposed Table1" = Table.Transpose(#"Removed Top Rows")
Best Regards,
Herbert
Herbert, thanks a lot, your solution fits perfectly!!!!
SOLVED!!!
Hi, you can do something like this:
= Table.RemoveColumns(Data0, Table.ColumnNames(Data0, 0)})
I have the same problem too whit wuery
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
87 | |
65 | |
50 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |