Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
A_Jafery
Partner - Contributor II
Partner - Contributor II

Accumulate value from the beginning of year to the current month in calculation

Hi,

I want to calculate 

Calc1 = Billed Revenue in Jun (current) till  Jan / Total Billed Revenue

 

I do to like this, but it only show the Jun only not from the beginning of year

Sum({[SPM Year]={'$(vMaxYear)'},[SPM Est Close Month] = {'$(vMaxMonth2)'}>}[Est. Billed Revenue For Current Year]))/(sum({<[SPM Year]={'$(vMaxYear)'}>}[Est. Billed Revenue For Current Year]))

1 Solution

Accepted Solutions
A_Jafery
Partner - Contributor II
Partner - Contributor II
Author

Thank you for the formula.

But I have to change the month to be in Num to use the <=.

 

Sum({[SPM Year]={'$(vMaxYear)'},[SPM Num Month]= {'<=$(vMonthNum)'}>}[Est. Billed Revenue For Current Year]))/(sum({<[SPM Year]={'$(vMaxYear)'}>}[Est. Billed Revenue For Current Year]))

 

View solution in original post

2 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

Sum({[SPM Year]={'$(vMaxYear)'},[SPM Est Close Month] = {"<=$(vMaxMonth2)"}>}[Est. Billed Revenue For Current Year]))/(sum({<[SPM Year]={'$(vMaxYear)'}>}[Est. Billed Revenue For Current Year]))

A_Jafery
Partner - Contributor II
Partner - Contributor II
Author

Thank you for the formula.

But I have to change the month to be in Num to use the <=.

 

Sum({[SPM Year]={'$(vMaxYear)'},[SPM Num Month]= {'<=$(vMonthNum)'}>}[Est. Billed Revenue For Current Year]))/(sum({<[SPM Year]={'$(vMaxYear)'}>}[Est. Billed Revenue For Current Year]))