I'm trying to summarize data in my entity [Application.Telemetry] by PrincipalID, summing the session count:
In the result set, I'm not getting a column SumOfSession
I do have additional filters as well to reduce the data to what I want
Any ideas of what I need to do to get SumOfSession.
Note what I'm trying to achieve it to get the principalId of the user(s) with the most sessions the last 30 days so next step will be to have a max somewhere
Solved! Go to Solution.
In my case it is an sum over single entity without groupby. But this should work too
actualvalue is an existing attribute in my collection. for better understanding it could also be totalamount_base with sum as totalamount_base i would say.
Here i got the samples for my query:
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/query-data-web-api
Hi @mthenot,
I have reduced your Flow and entity, but I can find the SumOfSession column. I have no filter, I assume your SumOfSession should be blocked by your filter. My suggestion is to reset the filter above to see more.
You can get the list records with any filter and test it again to find whether there has no column you want in the result.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The intent is to do aggragation of a column (sum, count...) and not returning a column.
This is as per ODATA specifications: http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs01/odata-data-aggregation-ext-v4.... but I guess it is not working.
Hi,
i was facing the same issue and wondering why nothing was returned. After some check i could find that i have to use an existing fieldname and no new one. Then i got the sum as expected.
Here is a test where i build the aggregation within loop by hand.
Top is the Amount i want to aggregate. Bottom is the Amount i am overwriting with the aggregate.
Thanks Daniel.
Can you show me your filter/aggregate Odata information?
Marc
In my case it is an sum over single entity without groupby. But this should work too
actualvalue is an existing attribute in my collection. for better understanding it could also be totalamount_base with sum as totalamount_base i would say.
Here i got the samples for my query:
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/query-data-web-api
so you end up with a cloumn on each of your records containing the aggregated value for the whole filtered collection of records?
The result can be seen in my first screen. For the sum aggregate i only get one result with my aggregated sum over the filter criteria.
In my case i had around 30 records summed up into a single result.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
63 | |
27 | |
21 | |
15 | |
13 |
User | Count |
---|---|
123 | |
46 | |
44 | |
35 | |
31 |