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

Community site session details

Session Id :
Power Apps - Building 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

I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Sum all History input

    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
    Re: Sum all History input

    @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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard