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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bonjourposte
Helper V
Helper V

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.