/// table_2をcollection_of_table_2に挿入
ClearCollect(collection_of_table_2,ForAll(table_2,{id:ThisRecord.id,product:ThisRecord.product,price:ThisRecord.price}));
//idごとにGrupBy
ClearCollect(collection_of_table_2_groupby,GroupBy(collection_of_table_2,"id","product"));
//productごとにこう合計
ClearCollect( collection_of_table_2_groupby_sum, AddColumns(collection_of_table_2_groupby, "Sum of price", Sum(product,price)));
// table_1と結合
ClearCollect(
collection_of_table_join,
AddColumns(
collection_of_table_2_groupby_sum,
"group",LookUp(table_1,id=collection_of_table_2_groupby_sum[@id],group)
)
);
More than 1 year has passed since last update.
〇PowerAppsでGrupBy して表結合して合計する方法
Last updated at Posted at 2022-09-06
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme