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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mrleijzer
Helper I
Helper I

Indexing yearly subscriptions

Hello everyone,

 

I have a pretty hard to explain situation which I'd like to solve, I'll give it a go:

I have 3 tables:

  1. customer information (ID, name, address, etc.)
  2. yearly maintenance work for this customer, these are contracts for 15 years so this table has 15 rows for each customer (ID from customer, year, costs of the year)
  3. an index table to calculate the yearly index on the yearly subscription for the customer (year, index %, year is related to the startyear + 1)

So let's say I have a customer and to keep it simple this example has only 3 years of subscription.

NameYearCosts
Customer 120214000
Customer 120221000
Customer 120231000

 

So the total costs are 7000, the customer will pay a yearly amount in a spread of the 3 years: 6000 / 3 = 2000 (index excluded)

 

And let's say my index table looks like this

YearIndex
20202%
20213%
20223%
20234%

 

Now, the first year has no index, so indexing the subscription only starts from the second year.

 

How can I produce a table calculating the amount of money that must be paid by the customer, index included?

 

It would look like this (the amount is calculated from the amount of last year + index):

 

NameYearAmountIndex
Customer 120212000,000%
Customer 120222060,003%
Customer 120232142,404%

 

I hope I've explained clear enough, thanks in advance for anyone's time and effort.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @mrleijzer,

Current power bi does not support recursion calculation in Dax formula. You can take a look at the following link about Dax recursion to know more about these:

Previous Value (“Recursion”) in DAX – Greg Deckler

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
mrleijzer
Helper I
Helper I

Thanks, with this I found a workaround!

v-shex-msft
Community Support
Community Support

HI @mrleijzer,

Current power bi does not support recursion calculation in Dax formula. You can take a look at the following link about Dax recursion to know more about these:

Previous Value (“Recursion”) in DAX – Greg Deckler

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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