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

bar chart, accumulate the last month

hello

i have a bar chart that show a count by month, the last month is the actual month.

is there anyway to do that the last bar (the actual month) could accumulate the value of the last month and current month.

for example in this table

=monthname(Fecha)count( DISTINCT Valor)
mar 20134
abr 20131
may 20131
jun 20133
jul 20133
ago 20131
sep 20131
oct 20131
nov 20131
dic 20132
ene 20142
feb 20141
mar 20141
abr 20143
may 20142
jun 20141
jul 20141

i need that the last bar that represent July 2014  accumulate the value of jun 2014 and jul 2014 and then show value 2 instead of 1.

i have attach an example.

thanks in advance for your help

regards

1 Solution

Accepted Solutions
tresesco
MVP
MVP

=If(Rowno()<>NoOfRows(), count( DISTINCT Valor), RangeSum( count( DISTINCT Valor),Above(count( DISTINCT Valor))))

Or a bit simpler:

=If(Rowno()<>NoOfRows(), count( DISTINCT Valor), RangeSum( Above(count( DISTINCT Valor),0,2)))

View solution in original post

2 Replies
tresesco
MVP
MVP

=If(Rowno()<>NoOfRows(), count( DISTINCT Valor), RangeSum( count( DISTINCT Valor),Above(count( DISTINCT Valor))))

Or a bit simpler:

=If(Rowno()<>NoOfRows(), count( DISTINCT Valor), RangeSum( Above(count( DISTINCT Valor),0,2)))

dcd123456
Creator
Creator
Author

Thanks very much for the answer, it works right

regards

dcd