I want to retrieve a count of customers, grouped by a record status of "bad" or "incomplete" using the SQL Get Rows (V2) Connector. I'm able to retrieve the rows of customers with their affiliated record status, but can't get the count/group by aspect to work. Does anyone know how to do this? Any help would be greatly appreciated! More info below.
Under the "Aggregation transformation" field, I have tried:
My filter query (which works):
Here is the SQL query:
Select count(person_id), recordstatus from dbo.Customer
where record status IN ('bad', 'incomplete') and statuscode = 0
group by (person_id);
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.