cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
abhikhopade
Frequent Visitor

How to get list count by category and populate another list with these values

Hi ,

I have a list List-A which has category column with values (-5, 'Select','5), What I needed is to populate another list List-B with values 

Title                    Count

Total Count        25 (Total List-A Count)

Completed         10 (With Positive values)

In-Complete        5 (With negative values)

Pending               5 (With 'Select' Values)

 

How to achieve that in one flow?

 

Regards,

Abhijeet

1 ACCEPTED SOLUTION

Accepted Solutions
PrasadAthalye
Super User
Super User

You can follow these steps...

 

  • Use Get Items to query all items.
  • Use Compose One and Take count of Get Items Output Value Collection for Total Count
  • Use Filter array and filter category is equal to -5.
  • Use Compose 2 and Take count of Filter Array Output Collection for Completed Count
  • Similarly add Filter Array and Compose 3 and 4 and collect counts.
  • Finally Create new List Items using these Compose objects.

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

1 REPLY 1
PrasadAthalye
Super User
Super User

You can follow these steps...

 

  • Use Get Items to query all items.
  • Use Compose One and Take count of Get Items Output Value Collection for Total Count
  • Use Filter array and filter category is equal to -5.
  • Use Compose 2 and Take count of Filter Array Output Collection for Completed Count
  • Similarly add Filter Array and Compose 3 and 4 and collect counts.
  • Finally Create new List Items using these Compose objects.

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,126)