Forum Discussion
New Columns to add
- 5 years ago
Hi Anonymous ,
Try to change the step of "Expanded Table column1", like below and remove the step of "Changed type".
#"Expanded Data" = Table.ExpandTableColumn( #"Removed Other Columns1", "Transform File", Table.ColumnNames(Table.Combine(#"Removed Other Columns1"[Transform File])), Table.ColumnNames(Table.Combine(#"Removed Other Columns1"[Transform File])) ),And remember to change the step "Trimmed Text" like so:
#"Trimmed Text" = Table.TransformColumns(#"Expanded Data",{{"Profit & Loss", Text.Trim, type text}}),Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
Hi Jimmy,
I have checked this and the stores are not filttered out, so i have added new column for the new stores (Highlighted in Yellow) in the formula as below but i gave this message.
Hello Anonymous
so a new store is resulting in new columns, not new rows? I saw that the reading of your file was created with the automatic function of Power Query to combine files automatically. In this code Power query is expanding only columns that are available in the first file (Sample file). If you have your new stores only in other files, this code will not work out. You would need to change your code into something dynamically.
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy