cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AndyRob1973 Frequent Visitor
Frequent Visitor

Cumulative line graph

Hello all,

 

Cumul_graph.pngI'm trying to represent some data in the form of a cumulative line graph. The data i have attached is made up to illustrate the type of thing I am trying achieve using powerbi. I would also like to be able interactively slice by Division.

 

Any help would be appreciated.

 

Thanks

 

Andy

1 ACCEPTED SOLUTION

Accepted Solutions
ZunzunUOC Member
Member

Re: Cumulative line graph

Ok, if you have any question here we are.

 

I have tried the solution and works fine.

3 REPLIES 3
ZunzunUOC Member
Member

Re: Cumulative line graph

Hi @AndyRob1973 , you need to create a calculated column with the next code:

 

Column = 
CALCULATE(SUM(Acum[recruits]);
    FILTER (
        Acum;
        Acum[YEAR] <= EARLIER ( Acum[YEAR] )
            && Acum[Month] <= EARLIER ( Acum[Month] ) && RIGHT(Acum[YEAR];2)=RIGHT(EARLIER(Acum[YEAR]);2) && Acum[Division]=EARLIER(Acum[Division])
    )
)

Best Regards,
Miguel

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

AndyRob1973 Frequent Visitor
Frequent Visitor

Re: Cumulative line graph

Thanks MIguel,

 

I will try that as soon as possible.......if it works I have a further question!

 

 

Thanks for your time

ZunzunUOC Member
Member

Re: Cumulative line graph

Ok, if you have any question here we are.

 

I have tried the solution and works fine.