Hi Everyone ,
I have an application that is reading a list from Sharepoint, and I would like to sum/group the values of Column CP5, CP6, CP7, CP8 based on Column Model. Is it possible to do that?
I tried using the group by function as follows, but it didn't work:
GroupBy(
'Saldo Produção';
"MODELO";"OData__x0043_P5";"OData__x0043_P6";"OData__x0043_P7";"OData__x0043_P8")
Could someone help me?
Solved! Go to Solution.
@Michel_FO Have a look at this,
The original data (I pulled it from Excel, but it doesn't really matter)
The Output in PowerApps DataTable
The Formula in the Items property of the DataTable
AddColumns(GroupBy(Models, "Model", "ModelsGroup"), "CP5", Sum(ModelsGroup, CP5), "CP6", Sum(ModelsGroup, CP6), "CP7", Sum(ModelsGroup, CP7), "CP8", Sum(ModelsGroup, CP8))
Please remember to give a 👍 and accept the solution as it will help others in the future.
Is this inside gallery? If you want to sum the numbers displaying try this:
Label8_7 is the name of the label inside my gallery. What it does is. Take all the values from label8_7. Convert it to number. Sum them and display. as text on another label which is outside gallery. As you can see in pic.
Hi My Friend,
I'm using the data table, which brings up the values from a list in sharepoint.
I'm managing to add the sum, what I wanted to achieve and join the first two lines, for example: if I were using the SQL server I would do:
Select * from table
group by model, CP5, CP6, CP7, CP8
@Michel_FO Have a look at this,
The original data (I pulled it from Excel, but it doesn't really matter)
The Output in PowerApps DataTable
The Formula in the Items property of the DataTable
AddColumns(GroupBy(Models, "Model", "ModelsGroup"), "CP5", Sum(ModelsGroup, CP5), "CP6", Sum(ModelsGroup, CP6), "CP7", Sum(ModelsGroup, CP7), "CP8", Sum(ModelsGroup, CP8))
Please remember to give a 👍 and accept the solution as it will help others in the future.
Thanks very much!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.
User | Count |
---|---|
207 | |
97 | |
60 | |
51 | |
44 |
User | Count |
---|---|
257 | |
160 | |
85 | |
79 | |
58 |