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 moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi
Is there any way that if we are importing some excel files from sharepoint and those files may contain a column for which it has different names, so how we can apply condition of 'OR' on that column
Thanks
Solved! Go to Solution.
I think I understand.
Have a look at the attached PBIX file.
Specifically, the last two steps in the 'Final' query.
let
Source = StoreA,
#"Appended Query" = Table.Combine(
{Table.Skip(Table.DemoteHeaders(Source), 1), Table.Skip(Table.DemoteHeaders(StoreB), 1)}
),
Custom1 = Table.RenameColumns(
#"Appended Query",
List.Zip({Table.ColumnNames(#"Appended Query"), PreferredColumnNames})
)
in
Custom1
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
Your question isn't entirely clear to me.
Are you saying you are trying to combine files but some have different column names?
If this is the case, are they at least in the same order in every file?
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
See, basically suppose there are 10 tables from which we are importing data.
And we have 4 columns in every file but in 4 files the 1st column is "ID" and in other six files the first column name is "Global ID". So is there any way that when are applying operation on all the files simultaneously then we can consider either "ID" or "Global ID"
I think I understand.
Have a look at the attached PBIX file.
Specifically, the last two steps in the 'Final' query.
let
Source = StoreA,
#"Appended Query" = Table.Combine(
{Table.Skip(Table.DemoteHeaders(Source), 1), Table.Skip(Table.DemoteHeaders(StoreB), 1)}
),
Custom1 = Table.RenameColumns(
#"Appended Query",
List.Zip({Table.ColumnNames(#"Appended Query"), PreferredColumnNames})
)
in
Custom1
| Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |