Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Calculating Cumulative Monthly Totals

$
0
0

Hello Power BI Gurus

 

I am stuck up with a situation, for which I have seen many solutions. However, nothing worked for me as I have more columns in my table. I need to calculate Monthly Cumulative numbers that add up values for each month in respective codes. I have following table structure:

 

Capture.JPG

 

 

I need a new calculated field that creates cumulative monthly "Actual_KD" filed for each Account Code and Cost Center.

I have tried following formulae but it gives me zero values all the way (TB is my Table name):

 

Cumulative_Actual =
CALCULATE (
    SUM ( TB'[Actual_KD] ),
    ALL ( 'TB' ),
    'TB'[Month] <= EARLIER ( 'TB'[Month] )
)

 

Appreciate support of experts

 

Regards

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>