cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PedroBrandt
Regular Visitor

Calculing a total in SP list

Hi everyone!

 

In this case e have my SP list

PedroBrandt_0-1609940826721.png

I need to sum all values in de right side when, the left side is select.

 

So If(Mirassol is select, sum every value in the totaldameta)

 

At the end put in a label on powerapps.

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@PedroBrandt 

You are missing some details on your scenario, but I will assume you have some sort of Dropdown to select the Cliente from - I will call it ddCliente and that the Items formula for it is the following:

    Distinct(yourSPList, Cliente)

 

So, for your Label, you can use the following formula in the Text property:

   Sum(Filter(yourSPList, Cliente=ddCliente.Selected.Result), TotalDaMeta)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@PedroBrandt 

You are missing some details on your scenario, but I will assume you have some sort of Dropdown to select the Cliente from - I will call it ddCliente and that the Items formula for it is the following:

    Distinct(yourSPList, Cliente)

 

So, for your Label, you can use the following formula in the Text property:

   Sum(Filter(yourSPList, Cliente=ddCliente.Selected.Result), TotalDaMeta)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

PedroBrandt
Regular Visitor

Thanks @RandyHayes !!!

 

You give me a path....

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,619)