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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sum all History input
Power Apps
Answered

Sum all History input

(0) ShareShare
ReportReport
Posted on by 372

Hi, 

 

ok so I have this database 'Process Production':

ID ProductNo. ProcessProcessHours
1ABC10kfdsmkfsl1
1ABC20dklafklamdf1.5
1ABC30dasdlafndlf;2
1ABC35alkslafmldaf1
1ABC40nksalkdjla1
2FRW20kdlsjfadnf2
2FRW30sdnkafmlaf3.5
2FRW40djklaflada10
2FRW50sdkaflad2.5

 

and I have another SharePoint List ('Tracking Process') to record the process, but the history process will be replaced to the new one. But I want to count the hours with the processes I've passed. Because the process not always based on 'No. Process'.

 

For now, I used this formula:

Round((Sum(Filter(AllRecapSOW, 'ID Product' =ThisItem.'ID Product' && 'No. Process' < ThisItem.'No. Process'),Hours)) / (Sum(Filter(AllRecapSOW, 'ID Product' =ThisItem.'ID Product'),Hours)) * 100,2) & " " & "%"

 

Note:

There's nothing wrong with formula, but the formula just work for flow like this:

-the first process that already submitted in SP list "Tracking Process" is No. Process 20.

then when, 
1. I choose ID 2FRW and No. Process 40 from database AllRekapSOW as second step

2. I submit that data to my SP list (lets call it "Tracking Process"), so the previous data (No. Process 20) will be replaced by No, Process 40.

3. then, the label in gallery which is displayed the %progress will calculate like: 
(2+3.5) / total hours ID 2FRW. 
Thats not what I want, because No. Process 30 has not been passed. Its should be, 
(2) / total hours ID 2FRW.

So, I want to know, how to revision the formula so I get flow what I want. Can you help me? Thank you

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @firda59 ,

     

    You could add one more status column for 'Process Production' to tag the step if it has been passed or not.

     

    Best Regards,
    Bof

  • firda59 Profile Picture
    372 on at

    @v-bofeng-msft 

     

    thanks for the insight!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard