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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Gdv
Frequent Visitor

Dax calculate monthy and yearly rent payments with variables

https://1drv.ms/u/s!AvCUiNWEUJeCq7Uj3wegyKJTjlsGMw?e=vusnte 

 

@lbendlin It took a long for me to shape it .. I also tried at my end to work on earlier solution provided by you and worked something which is also attached for your reference

Requirements

  1. Rent Varies every no. of years ... R1 to R30, R1 is 1st renewal and corresponding increment is RE1 to RE30
  2. Apart from Rent Licensee shares RevenueShareMonthly and Escalation in Revenue every year as RS I YoY%
  3. Revenue from Car Parks allotted CarParks @ RatepCarPark
  4. CAM Margin (Common Area Maintenance Charges) per sqft per month and Revenue from the same is Margin
  5. IFSDM Amount deposited by the tenant to landlord at the time of start of lease and which landlord will return the same amount at the time of expirty of lease
  6. AdministrativeCharges and EscalationRateA
  7. Renting Management Expenses (RME) and EscalationRateRME
  8. Renting Brokerage No. of Months at the Start of Rent
  9. Renting Brokerage (Post Expiry) No. of Months of Rent, in case of Lease expires before termination date (EndDate)
  10. Rent Calculation and Other Income to be Calculated for period  is from StartDate to EndDatehttps://1drv.ms/u/s!AvCUiNWEUJeCq7Uj3wegyKJTjlsGMw?e=anMqMA 
1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @Gdv ,

You can try checking R1-R30 - Transform - Unpivot Columns in Power Query.

vyangliumsft_0-1725243591268.png

Then create a calculated column showing the Index of the grouping, and use measure to implement the metrics for each month's totals.

Create calculated column:

Index =
var _len=LEN('2ProjectData'[Attribute])
var _find=FIND("R",'2ProjectData'[Attribute],1)
var _right=
VALUE(RIGHT([Attribute],_len-_find))
return
_right

vyangliumsft_1-1725243591269.png

Create Measure:

Measure =
SUMX(
    FILTER(ALL('2ProjectData'),
    '2ProjectData'[Licensee]=MAX('2ProjectData'[Licensee])&&'2ProjectData'[Index]<=MAX('2ProjectData'[Index])),[Value])

vyangliumsft_2-1725243620800.png

If the above results do not meet your expectations, can you express the expected results in the form of a picture, we can help you better

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.