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
afrutos
Resolver I
Resolver I

INITIALIZE EACH YEAR

Hello good afternoon, I am having trouble solving this formula:

I have a column that is AMOUNT PAID, and I need to calculate the remainder that is left each year.
I also have to take into account if it is an AID or SCHOLARSHIP, since each year I start with 100.000€ each.

To calculate the remainder for SCHOLARSHIPS for example, it would have to be calculated this 2022 as 100,000- AMOUNT PAID in that year (2022), and when moving to the next year (2023) it has to be again 100,000- AMOUNT PAID in that year (2023).

does anyone know how I can calculate this?

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@afrutos , We can have crossjoin with a year table , assume you have fund table

 

crossjoin(generateseries(2022, year(today()) , 1) , fund)

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@afrutos , We can have crossjoin with a year table , assume you have fund table

 

crossjoin(generateseries(2022, year(today()) , 1) , fund)

afrutos_1-1660115343006.png

 

I have my calendar table but I don't understand what do you mean

Could you explain a little bit more or give me an example please?

 

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.