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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jaco1951
Helper III
Helper III

How to sum values only once per month

Hi

 

I have a series of loans that 99% of the time have instalments every quarter or 6 months. But a few times there are made instalments twice in the same month.

 

Are there any good solution to present this graphically without doubling the loan balance for these periods. I would prefer to sum only the last date of instalment, but the aggergation is on YearMonth level, not date level as it would make the table almost 100 times bigger.

 

Capture.JPG

 

 

Capture.JPG

 

 

 

Best regards

Espen

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @jaco1951,

 

So you mean not calculated summarize on remain loan when tables contains multiple records in same month, right?

 

I think you can create a variable to manually summarize loan to calculate correct amount, then you can look up correct loan from summary table and use this to calculate.

Display Measure =
VAR summied =
    SUMMARIZE (
        Table,
        [%Sec_CFP],
        [FIrstDate],
        [LoanBalance_Start],
        [LoanBalance_End]
    )
RETURN
    'formula'

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @jaco1951,

 

Is there any conditions to check which records are the duplicated? If you have, you can add this to calculate formula to remove unmatched part.

 

Regards,
XIaoxin Sheng

Hi

 

Unfortunately these are not duplicates, but extraordinary paymentes outside the payment plan. So they have effect on the loan balance.

 

What I have done now is changing my granularity from YearMonth to date level, it blows up the size quite a lot, but it might work. I used auto fill to fill the empty dates with loan balance values.

 

Yet, I would like to learn how this could be solved in a better way.

 

Best regards Espen

Anonymous
Not applicable

HI @jaco1951,

 

So you mean not calculated summarize on remain loan when tables contains multiple records in same month, right?

 

I think you can create a variable to manually summarize loan to calculate correct amount, then you can look up correct loan from summary table and use this to calculate.

Display Measure =
VAR summied =
    SUMMARIZE (
        Table,
        [%Sec_CFP],
        [FIrstDate],
        [LoanBalance_Start],
        [LoanBalance_End]
    )
RETURN
    'formula'

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors