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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
AndyRob1973
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

Ok, if you have any question here we are.

 

I have tried the solution and works fine.

View solution in original post

3 REPLIES 3
ZunzunUOC
Resolver III
Resolver III

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.

Thanks MIguel,

 

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

 

 

Thanks for your time

Ok, if you have any question here we are.

 

I have tried the solution and works fine.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.