web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Count the output from ...
Power Automate
Unanswered

Count the output from get items action with status value

(0) ShareShare
ReportReport
Posted on by 20

I want to add a condition to count the length of the output that I loop for the get item. Now I'm using 'apply to each' for the loop then get items from Sharepoint, then show. I already write the expression like this one length(outputs('Get_items')?['body/value']) 

 

how should I write the condition after that? I would like to write a condition that counts the length of the item that I get from Sharepoint and has the column value equal to x or y . In Sharepoint, the data type of the column that contains the value x and y is choices.


I've added a condition in the Query Filter field of the Get List action. It is user-selected system name and date filters. But I want to count how many transactions in the system and the date I selected have the analyzing status, waiting for acceptance status, or completed. I want to count these data according to the conditions.

 

The dataset is below

DateSystemStatus
2023/02/26Abc

Analysis

2023/02/26Def

Complete

2023/02/26Abc

Complete

2023/02/25Abc

Analysis


if user select 2023/02/26 and system name is Abc

the result should be like:

Analysis: 1

Complete: 1

 

It's a bit complicated. Or if you have another method, please suggest.

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @dinerogs ,

     

    With the help of Filter query, you can get the ouput of an array that includes selected Systems and Date from Get items action. After that, you can use Filter array actions in parallel branches and populate the results into a variable:

    vjefferni_1-1677655420278.png

     

    Best regards,

  • dinerogs Profile Picture
    20 on at

    @v-jefferni Thank you very much, you’re awesome. I made a few modify, it worked pretty well.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard