Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
bois74
New Member

Dax calculate monthy and yearly rent payments

I am trying to create a power bi dax monthy payment calculations on several properties with following data in a table:

1.  lease start dates :  1/5/2022 and 3/6/2020 (and due date for subsequent months)

2.  2 months free :  3/5/2022, 5/5/2020  (payments are 0 and start on these dates)

3.  lease expiration date:  1/5/2028, 3/6/2030

4.  at end of each year rent increase 2%

5.  rent is $950,  $1250

I am hoping to look at each properties cashflow on a monthly and yearly basis.

 

 

 

 

 

1 ACCEPTED SOLUTION

Your explanations and your sample data do not match.  But here's the adjusted formula

amount = 
VAR a =  SUMMARIZECOLUMNS (
        'Properties'[Property],
        'Properties'[Lease Start],
        'Properties'[Lease End],
        'Properties'[Deferred Months],
        'Properties'[Starting Rent],
        'Properties'[Annual increase],
        Dates[MNo],
        Dates[Year]
    )
VAR b =  ADDCOLUMNS ( a,
        "rent",
            IF (
                FORMAT ( DATE ( [Year], [MNo], 1 ), "yyyymm" )
                    >= FORMAT ( EDATE ( [Lease Start], [Deferred Months] ), "yyyymm" )
                    && FORMAT ( DATE ( [Year], [MNo], 1 ), "yyyymm" )
                        <= FORMAT ( [Lease End], "yyyymm" ),
                [Starting Rent],
                0
            ),
        "factor",
            VAR d =
                INT(DIVIDE(DATEDIFF (
                    EDATE ( [Lease Start], 1),
                    DATE ( [Year], [MNo], 1 ),
                    MONTH
                ),12))
            RETURN
                IF ( d < 1, 1, POWER ( 1 + [Annual increase], d ) )
    )
RETURN
    SUMX ( b, [rent] * [factor] )

see attached.

View solution in original post

13 REPLIES 13
jennaw2024
New Member

I am trying to show the increasing costs of our properties but we have multiple escalations based lease dates then, outside of these properties i have some with set % increases year over year and some with % based on the country's inflation index. How do I do this? Even though the leases go back years I was going to start fresh with our fiscal year of 1July2024. Properties Escalation Date CCY Base Rent Monthly (CCY) 1 2025-11-01 AUD 9412.47 1 2025-01-01 NZD 36457.86 1 2026-01-01 NZD 37916.17 2 2024-12-01 USD 29137.53 2 2025-12-01 USD 29825.31 3 2026-07-01 CAD 17788.75 4 2026-05-01 USD 28359.92 4 2027-05-01 USD 29057.29 5 2024-09-01 USD 16846.29 5 2025-09-01 USD 17351.68 6 2024-12-01 USD 124536.65 6 2025-12-01 USD 126645.46 6 2026-12-01 USD 128754.26 6 2027-12-01 USD 130980.22 7 2025-03-01 USD 9374 7 2026-03-01 USD 9569.29 7 2027-03-01 USD 9764.58 7 2028-03-01 USD 9959.88 7 2029-03-01 USD 10155.17 8 2024-11-01 USD 5005.76 8 2025-11-01 USD 5130.9 8 2026-11-01 USD 5259.17 8 2027-11-01 USD 5390.65 9 2024-11-01 USD 36250 9 2025-11-01 USD 36833.33333 9 2026-11-01 USD 38458.33333 9 2027-11-01 USD 43875 9 2028-11-01 USD 44958.33333 10 2024-11-01 ZAR 44049.75833 10 2025-11-01 ZAR 47133.24142 10 2026-11-01 ZAR 50432.56832 10 2027-11-01 ZAR 53962.8481 10 2028-11-01 ZAR 57740.24746 10 2029-11-01 ZAR 61782.06479 11 2026-03-01 GBP 5034.721667 11 2027-03-01 GBP 6250 12 2024-11-01 USD 48925 12 2025-11-01 USD 50392.75 12 2026-11-01 USD 51904.5 12 2027-11-01 USD 53461.66667 12 2028-11-01 USD 64243.08333 12 2029-11-01 USD 66170.41667 12 2030-11-01 USD 68155.5 13 1905-07-16 EUR 5650 14 2031-01-01 USD 194016 15 2025-01-01 USD 6701.5 16 2025-03-01 USD 6020 17 2025-03-01 USD 48679.4 17 2026-03-01 USD 50139.78 17 2027-03-01 USD 51643.97 17 2028-03-01 USD 53193.29 17 2029-03-01 USD 54789.09 17 2030-03-01 USD 56432.76 17 2031-03-01 USD 58125.75 17 2032-03-01 USD 59869.52 17 2033-03-01 USD 61665.6 18 2030-05-01 CAD 105256.5 18 2033-05-01 CAD 109735.5

@jennaw2024   please open a new thread.  Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Gdv
Frequent Visitor

thanks

Gdv
Frequent Visitor

desired out put 

 09-05-202431-05-202430-06-202431-07-202431-08-202430-09-202431-10-202430-11-202431-12-202431-01-202528-02-202531-03-202530-04-202531-05-2025
Projected Rental Income as per Base Rent0.001.141.802.583.484.505.646.908.289.7813.1413.1415.0016.98
Projected Revenue Share0.000.000.000.000.000.000.000.000.000.000.000.000.000.00
Gross Income0.001.151.812.593.494.515.656.918.299.7913.1513.1515.0116.99
Balance Cost0.00(0.29)      (0.29)     
Repairs0.00(1.12)(1.12)(1.12)(1.12)(1.12)(1.12)(1.12)(1.12)(1.18)(1.18)(1.18)(1.18)(1.18)
Gross Expenses0.00(1.41)(1.12)(1.12)(1.12)(1.12)(1.12)(1.12)(1.41)(1.18)(1.18)(1.18)(1.18)(1.18)
Net Income0.00(0.27)0.681.462.363.384.525.786.878.6111.9711.9713.8315.81
               
               
               
               
               
               
StartDate09-05-2024             
EndDate31-10-2056             
Gdv
Frequent Visitor

Balance CostCostDate
Balance Cost A100015-02-24
Balance Cost A150015-08-24
Balance Cost A75015-08-26
Balance Cost A150015-02-27
Balance Cost A40015-02-29
Balance Cost A30015-02-30
Balance Cost A25015-08-30
Gdv
Frequent Visitor

 
LicenseeGLA sqftLeaseStartDateRentCommencementDateLeaseEndDateBase Rent1st Escalation
After Years
2nd Escalation
After 1st Esclation
3rd Escalation
After 2nd
4th Escalation
After Years
5th Escalation
After Years
Escalation in Base Rent at aEscalation in Base Rent at bEscalation in Base Rent at cEscalation in Base Rent at dEscalation in Base Rent at eBase Rent at aBase Rent at bBase Rent at cBase Rent at dBase Rent at eRepairs Cost After 1 Year of LeaseStartDateEscalation %paRevenue Share per AnnumEscalation Revenue Share %
      abcde              
A1,00015-02-2415-03-2415-02-33603211115.0%10.0%3.0%3.0%3.0%9111011411712121%11,0001%
B1,00015-02-2415-04-2415-02-33612211112.0%10.0%4.0%4.0%4.0%77939610010424%2,50,0004%
C1,00015-02-2415-05-2415-02-33621211110.0%10.0%5.0%5.0%5.0%688387919635%25,0005%
D7,00015-02-2415-04-2415-02-3345221117.0%4.0%4.0%4.0%4.0%525658606344%40,0004%
      eq                  
     x15-02-2715-02-2915-02-3015-02-3115-02-32     above rent at x dates        
      15-02-2615-02-2815-02-2915-02-3015-02-31              
lbendlin
Super User
Super User

Please clarify

1. what calendar is that?  Jan 5 or May 1 ?

2. why 5/5/2020 and not 5/6/2020 ?

4.  End of a full year of lease, end of calendar year, end of full lease while considering the free months?

 

lbendlin_0-1711301020110.png

 

 

PropertyRentFree Rent MonthsLease StartLease ExpirationYearlyIncrease
A95021/5/20223/17/20260.03
B125023/6/202010/17/20250.03
C69246/15/20203/23/20510.03
D595039/10/20193/23/20240.03
E294511/12/20183/25/20260.02
F1167528/20/20189/24/20260.03
G1470510/30/201911/27/20250.0275
H150034/1/20204/30/20240.0275

Your explanations and your sample data do not match.  But here's the adjusted formula

amount = 
VAR a =  SUMMARIZECOLUMNS (
        'Properties'[Property],
        'Properties'[Lease Start],
        'Properties'[Lease End],
        'Properties'[Deferred Months],
        'Properties'[Starting Rent],
        'Properties'[Annual increase],
        Dates[MNo],
        Dates[Year]
    )
VAR b =  ADDCOLUMNS ( a,
        "rent",
            IF (
                FORMAT ( DATE ( [Year], [MNo], 1 ), "yyyymm" )
                    >= FORMAT ( EDATE ( [Lease Start], [Deferred Months] ), "yyyymm" )
                    && FORMAT ( DATE ( [Year], [MNo], 1 ), "yyyymm" )
                        <= FORMAT ( [Lease End], "yyyymm" ),
                [Starting Rent],
                0
            ),
        "factor",
            VAR d =
                INT(DIVIDE(DATEDIFF (
                    EDATE ( [Lease Start], 1),
                    DATE ( [Year], [MNo], 1 ),
                    MONTH
                ),12))
            RETURN
                IF ( d < 1, 1, POWER ( 1 + [Annual increase], d ) )
    )
RETURN
    SUMX ( b, [rent] * [factor] )

see attached.

Gdv
Frequent Visitor

Its really amazing, i have little different situation,

1) in some properties rent increases after 2 years or 3 years, what modification i need to do in it,

 

2) rent is in p sqft p month and area is given so i need to do product of area*rate*factor

 

3) some cost p sqfr are linked with area, area x cost is required to be deducted

 

If u can help, would be grateful

 

@Gdv Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Yeah, sorry about that.  This is really amazing though.  You got some talent : ) Really teaches me a lot.  Appreciate all your help Ibendlin! 

thank you Ibendin!

there are 2 properties

For 1st property

1.  lease is signed on 1/5/2022 for $950 a month

2.  on 2/5/2022 and 3/5/2022 = $0 monthly rent

3.  on 4/5/2022 through 1/5/2022 = $950 rent is due each month

4.  on 1/5/2023 rent increases $950 * 1.02 = $962 per month but really the $962 cashflow isn't received until next 2/5/2022

5.  on every anniversary it increases until end of lease.  so 2/5/2024, payment increases $962 * 1.02 again until 1/5/2028.

6.  same for property 2 except different dates.  I will try to upload excel file in a minute.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.