cancel
Showing results for
Did you mean:
Highlighted
Helper I

## Cumulative line chart in combo chart

Hi there

I currently have a combo chart that looks like this:

The chart is based on a measure "Hours Saved" and shows values for each transaction date.

I would like to additionally have a line chart added that shows the cummulative value of hours saved up to that date.

Something like this:

Anyone know how this can be done?

Keep in mind that i do not have the values for hours saved each day in a table but it is made using a measure.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I

5 REPLIES 5
Highlighted
Super User IX

## Re: Cumulative line chart in combo chart

Create a cumulative measure like this

Cumm = CALCULATE(SUM(Table[hours]),filter(date,date[date] <=maxx(date,date[date])))
Cumm = CALCULATE(SUM(Table[hours]),filter(date,date[date] <=max(Table[Date])))

And use in combo chart like line and bar or line and clustered

Proud to be a Super User!

Highlighted
Helper I

## Re: Cumulative line chart in combo chart

Using your solution seems to just give the same result without accumulation.

My "Hours Saved" measure as calculated like this:
Hours Saved = SUMX(QueueDB; RELATED(queuesROI[timeValueMin]))/60

I tried to calculate it this way:
Cumm = CALCULATE([Hours Saved];FILTER(QueueDB;QueueDB[transactionEND] <=MAX(QueueDB[transactionEND])))
Highlighted
Community Support

## Re: Cumulative line chart in combo chart

Hi @TKLAAB ,

Refer the formula below and see if it helps.

``````Measure = CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[date]))

Measure 2 = CALCULATE([Measure],FILTER(ALL('Table'),'Table'[date]<=SELECTEDVALUE('Table'[date])))``````

Here's the result about my sample data.

If this not help, please share some sample data if you don't have any Confidential Information.

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution to help the other members find it.
Highlighted
Helper I

## Re: Cumulative line chart in combo chart

How do I upload a data sample here for you to see?

Highlighted
Helper I

## Re: Cumulative line chart in combo chart

Announcements

#### Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

#### Community Summit North America – Join Online!

Join this community-driven Power Platform digital event for unbiased support and problem-solving.

#### Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

#### Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Top Solution Authors
Top Kudoed Authors