cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gorilla_8
Super User
Super User

SUM FORMULA

Hey guys, I need to make a simple sum, but didn't work out very well...

 

I need make this calculation: 

 

% = TrabalhoRealdaTarefa/(TrabalhoRealdaTarefa+TrabalhoRestantedaTarefa)

 

But i made this:

 

sum_app.png

3 REPLIES 3
timl
Super User
Super User

Hi @Gorilla_8 

The first thing I'd check is that you're referring to the correct data. In this example, are you expecting the result "37,77%"? eg (51/(51+84) * 100)?

I see that your formula refers to the record First(collTaskRow). Is this the record that you're intending to use?

To avoid any problems in retrieving the correct record, in this example, it might be easiest for you to reference the textbox values directly.

Text((Value(TextboxReal.Text) / Value(TextboxReal.Text)  + Value(TextboxRestante.Text)) * 100 )

 

Thanks for the resposing @timl ! 

 

But I need to use the value on collection

Gorilla_8
Super User
Super User

I think I fix it...

 

Sum(Round(Value(Text(First(collTaskRow).TrabalhoRealdaTarefa / Value(Text(First(collTaskRow).TrabalhoRealdaTarefa + Value(Text(First(collTaskRow).TrabalhoRestantedaTarefa))))));4)*100) & " %"

 

% conc.png

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,683)