Forum Discussion
Duplicate or refer Table ? Or someting else
- Anonymous5 years ago
No!
You have to use a separate expression for
Table.SelectColumns(Table.SelectRows(Table1, (sel)=> sel[#"filter_item"] = 1)),{"key_1", "field_1", "field_2", "field_3", "field_4", "field_5"})
for instance:
TABBUFF=Table.Buffer(Table.SelectColumns(Table.SelectRows(Table1, (sel)=> sel[#"filter_item"] = 1)),{"key_1", "field_1", "field_2", "field_3", "field_4", "field_5"}),then the rest (check the sintax: ican't do)
#"join_sum_T1_T2_" = let #"GroupedLines" = Table.Group(TABBUFF, {"key", "filter_item"}, {{"sum_field_1", each List.Sum([#"field_1"]), type nullable number}, {"sum_field_2", each List.Sum([field_32), type nullable number}, {"Ssum_field_3", each List.Sum([#"field_3"]), type nullable number}, {"sum_field_4", each List.Sum([#"field_4"]), type nullable number}}), #"MergedQueries" = Table.NestedJoin(#"Table2_source", {"key_2"}, #"GroupedLines", {"key_1"}, "Table1_sum", JoinKind.LeftOuter), #"Tableexpanded" = Table.ExpandTableColumn(#"MergedQueries", "Table1_sum", {"sum_field_1", "sum_field_2", "sum_field_3", "sum_field_4"}, {"sum_field_1", "sum_field_2", "sum_field_3", "sum_field_4"}) in #"Tableexpanded",
You can try to use Table.Buffer() around the last step of one of your tables. It would be helpful though to know what the 38 custom columns are - (calculated columns are a DAX thing, not Power Query) and then we could see if you had a model issue or a better way to approach this.
How to get good help fast. Help us help you.
How To Ask A Technical Question If you Really Want An Answer
How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.
- SaaM5 years ago
Helper II
Thanks for your reply.
I tried your solution Table.Buffer(myTable), but it reacts the same if i did a reference or a duplicate, i.e it executes all the previous queries again and again.
What I meant by calculated columns, it's added columns to the original Source with power query formulas (sums of columns with group by key, row counts with group by key etc...).
I start in my model with my original Table with 20 columns and end with a Table with 58 columns (20+38 added columns)
What I am looking for is something similar or that does the same thing as in Excel (Copy and paste table values without the formulas and calculus).
Kind regards