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 formulas based on ...
Power Apps
Unanswered

SUM formulas based on IF/AND conditions

(0) ShareShare
ReportReport
Posted on by 2

Hi All,

 

Hoping to find some help here. I am fairly proficient writing formulas in excel, however, I now use PQE a lot. I am looking to replicate work I have done previously in excel, using only excel, by incorporating PQE to manage most of the work for me. I am slowly making ground with PQE syntax but I am yet to understand how to stack formulas and how to perform SUMS within a formula. An example of one of my excel formulas, which I wish to replicate in PQE is below. Could somebody perhaps translate this to a working PQE formula, from which I can start to understand the structure and workings of PQE formulas.

 

=IF(AND([@[Rent Review Date]]<Months!$B$1,[@[Rent Review Date]]>Months!$A$1),SUM([@[Previous Rent]]/12)+SUM([@[New Rent]]-[@[Previous Rent]])/366*[@[New Days]],IF([@[Review Date]]>Months!$B$1,SUM([@[Previous Rent]]/12),[@[New Rent]]/12))

 

I use this to determine what value of rent is due in a month based on whether or not an increase occurs in the given month. All of the data in PQE mirrors column names, tab references etc.

 

Thanks in advance.

Categories:
I have the same question (0)
  • Royle79 Profile Picture
    2 on at

    I managed to solve this, I thought there would be some more complexity to it. My solution;

     

    if [Rent Review Date]< #date (2024,4,30) and [Rent Review Date] > #date (2024,4,1) then ([Previous Rent]/12) + ([New Rent]-[Previous Rent])/ 365 *[Days New Rent] else if [Rent Review Date] > #date (2024,4,30) then [Previous Rent] / 12 else [New Rent Monthly]

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard