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
bonjourposte
Advocate III
Advocate III

Calculated Column- Adding up Total per Month

I'm trying to create a column that shows the monthly totals next to each line in the month.  

 

This is what I want it to look like:

bonjourposte_1-1721602969429.png

 

 

This is how the two tables are joined:

bonjourposte_0-1721602913491.png

 

This has been my best guess: 

Sum Dividends/Mo =
CALCULATE(SUMX('Dividend Return Breakdown'),FILTER('Dividend Return Breakdown','Dividend Return Breakdown'[Month]))
 
It is not working.  

 

1 ACCEPTED SOLUTION

hello @bonjourposte 

 

please check if this accomodate your need.

 

1. create calculated column for month number

Irwan_0-1721614188958.png

 

2. create calculated column for calculating sum of number

Desired Monthly Total =
SUMX(
    FILTER(
        'Table',
        'Table'[Month]=EARLIER('Table'[Month])
    ),
    'Table'[BMAX]+'Table'[DE]+'Table'[HDIF]+'Table'[HDIV]+'Table'[HMAX]+'Table'[HYLD]+'Table'[ZWC]
)
Irwan_1-1721614242758.png

 

Hope this will help you.

Thank you.

View solution in original post

5 REPLIES 5
PhilipTreacy
Super User
Super User

@bonjourposte 

 

Please provide data we can work with - preferably your data file.

 

How is it 'not working'?  I can't tell what you expect the result to be - please show an example of the result you want.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Sorry I should've highlighted the last column.  I want the results in the last column like this:

bonjourposte_0-1721606621859.png

Does that help?  I just keep getting #ERROR messages.  

 

hello @bonjourposte 

 

please check if this accomodate your need.

 

1. create calculated column for month number

Irwan_0-1721614188958.png

 

2. create calculated column for calculating sum of number

Desired Monthly Total =
SUMX(
    FILTER(
        'Table',
        'Table'[Month]=EARLIER('Table'[Month])
    ),
    'Table'[BMAX]+'Table'[DE]+'Table'[HDIF]+'Table'[HDIV]+'Table'[HMAX]+'Table'[HYLD]+'Table'[ZWC]
)
Irwan_1-1721614242758.png

 

Hope this will help you.

Thank you.

Thanks, it worked, I never thought of EARLIER.  I have two July entries from two years, so they added together, so I combined the month/year columns and it worked.

hello @bonjourposte 

 

glad to be a help.

 

Thank you.

Helpful resources

Announcements
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.