Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Sum a column when two other columns have same value

(0) ShareShare
ReportReport
Posted on by

Long time lurker first time poster. I'm going nuts and hoping someone can help.  I'm in Power Apps using data from a  SharePoint list.

 

Data

Project NameFYMonthSpentReportDate
(lookup)(number)(text, ie. Jan, Feb, Mar)(currency)(date)
ProjectA22JAN101/15/2022
ProjectA22JAN51/15/2022
ProjectB22JAN81/15/2022
ProjectC22JAN91/15/2022
ProjectA22FEB122/15/2022
ProjectA22FEB132/15/2022
ProjectB22FEB182/15/2022
ProjectC22FEB192/15/2022

 

I have a power app that asks the user for the FY via dropdown and the project name via dropdown.

FY dropdown: Distinct('DataSource'.FY,FY)

Project dropdown: Sort(Distinct(Collection,ProjectName.Value),Result,Ascending)

*note ProjectName is a lookup therefore .Value added*

 

I'm trying to chart data for each selected Project by Month.  I can successfully chart the data for the individual rows but I can't figure out how to sum the spent column for a given project in a given month.

 

Intent:

The user selects Project A. The chart shows the summation by month (aka TotalSpent in JAN, TotalSpent in Feb, etc) for the selected project. The need for two columns to be the same (Project A and Month) to then sum the 'spent' column while ensuring I have the TotalSpent & Month for the chart is driving me nuts.  I also need to use ReportDate, or have in the past used it, to sort the data ensuring the x-axis is in the correct order.  Note there are some projects that are not duplicated though I hardly think that matters I presented the info as such.

 

Any assistance you all can provide is appreciated.  

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard