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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
DMinero
Regular Visitor

support with formulas in power bi

Hello!

 

I am currently working a base in power bi where I have a monthly balance column for each client, so what I want to know how much each client of the base has amortized every month.

 

My problem is that the client is repeat in all the months of the year in the same column, if the client repeats in a column per month could do in the simple way subtract but I do not know if any of you could provide me with a solution.

 

thanks in advance.

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @DMinero,

 

Not sure how you information is setup but you can do a measure like this:

 

Amortized =
TOTALMTD ( SUM ( Table[Value] ), Calendar[Date] )
    - TOTALMTD ( SUM ( Table[Value] ), DATEADD ( Calendar[Date], -1, MONTH ) )

 

If you add this to your table with customer name and month you should have what you need change the columns to the ones on your model.

 

Regards,

MFelix

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
MFelix
Super User
Super User

Hi @DMinero,

 

Not sure how you information is setup but you can do a measure like this:

 

Amortized =
TOTALMTD ( SUM ( Table[Value] ), Calendar[Date] )
    - TOTALMTD ( SUM ( Table[Value] ), DATEADD ( Calendar[Date], -1, MONTH ) )

 

If you add this to your table with customer name and month you should have what you need change the columns to the ones on your model.

 

Regards,

MFelix

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



thnks to anwers, just a quick question calendar is a table ?

Hi @DMinero,

Calendar is a table that is.linked to the dates in your data model and used in calculations and.visuals.

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



HI MFelix  Sorry for bothering I do the calculation as indicated, but it only subtracted 1 dollar instead of subtracting the amount of the previous month. 

 

Could you tell me if I can do two simple columns:

 

1. Column MTD, which I already have

2. Column previous month

 

In this way, I could proceed and just make a simple subtraction.

 

Thnks in advance.

 

Hi @DMinero,

 

If you do the split of my formula you have two measures:

 

Total MTD =TOTALMTD ( SUM ( Table[Value] ), Calendar[Date] )



Total PY MTD = TOTALMTD ( SUM ( Table[Value] ), DATEADD ( Calendar[Date], -1, MONTH ) )

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.