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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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