Cumulative bar chart

Thom_vee

New Member
Joined
Oct 26, 2012
Messages
37
I`m just getting started with Power BI. I have a table called observations , in which I have a column called "created_on" (dd:mm:yyy:hh:mm:ss). I have charted out a bar graph of no of observations per year using this column. However, I wish to make a colum showing the cumulative growth over the years so that I can generate a chart of the cumulative upload of obsetrvations across all years (1970 - 2017).

eg:
created_on
09-03-2017: 16:26:00
01-06-2016: 16:26:00
03-04-2016: 16:26:00
06-03-2015: 16:26:00
04-11-2016: 16:26:00
02-08-2016: 16:26:00
31-12-2015: 16:26:00
27-04-2014: 16:26:00

so the count every year:
2014 - 1
2015 - 2
2016 - 4
2017 - 1

What I want is cumulative addition of the previous years:
2014 - 1
2015 - 3
2016 - 7
2017 - 8

Can anyone please help?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
You can use quick measures for this sort of thing. Go to options and settings preview features and enable quick measures.

Gave me:

Code:
Data running total in Year = 
CALCULATE(
 SUM('Inputs'[Data]),
 FILTER(
  ALLSELECTED('Inputs'[Year]),
  ISONORAFTER('Inputs'[Year], MAX('Inputs'[Year]), DESC)
 )
)
 
Upvote 0
You can use quick measures for this sort of thing. Go to options and settings preview features and enable quick measures.

Gave me:

Code:
Data running total in Year = 
CALCULATE(
 SUM('Inputs'[Data]),
 FILTER(
  ALLSELECTED('Inputs'[Year]),
  ISONORAFTER('Inputs'[Year], MAX('Inputs'[Year]), DESC)
 )
)

Thank you I tried that but it gives me the same value over every year!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top