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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
yaseenhamid
Frequent Visitor

Need help Creating chart with 2 commulative lines in power Bi

  • -I am trying to create this in power Bi. 

IMG-20230403-WA0008.jpg

-I m importing this data in excel. 

IMG-20230403-WA0009.jpg

-after unpivoting columns other than first column . I'm getting this data in power Bi.

IMG-20230403-WA0010.jpg

-to calculate commulative of planned and earned values over time. I'm using this formula to create measure. 

" Cumulative Total = 

CALCULATE (

SUM('scurve'[Cost]),

FILTER (

ALL( 'scurve'[Date] ),

'scurve'[Date] <= MAX ( 'scurve'[Date] )

))

-Which calculates commulative for Planned and earned costs separately in same column.

IMG-20230403-WA0012.jpg

 -the issue is that when I add these fields in chart to show what I want. It doesn't show me accurate commulative lines in chart. 

IMG-20230403-WA0013.jpg

IMG-20230403-WA0014.jpg

 - I want 2 lines showing commulative of planned and earned values here as I posted photo in the beginning of excel chart. 

 

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@yaseenhamid ,

use this measures,

 

Cumulative Earned Value = 
CALCULATE(
    SUM('Table'[Cost]),
    'Table'[Cost Type] = "Earned Value Cost",
    'Table'[Date]<=MAX('Table'[Date]))
Cumulative Planned Value = 
CALCULATE(
    SUM('Table'[Cost]),
    'Table'[Cost Type] = "Planned Value Cost",
    'Table'[Date]<=MAX('Table'[Date]))

 

Arul_0-1680518583210.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

3 REPLIES 3
Arul
Super User
Super User

@yaseenhamid ,

use this measures,

 

Cumulative Earned Value = 
CALCULATE(
    SUM('Table'[Cost]),
    'Table'[Cost Type] = "Earned Value Cost",
    'Table'[Date]<=MAX('Table'[Date]))
Cumulative Planned Value = 
CALCULATE(
    SUM('Table'[Cost]),
    'Table'[Cost Type] = "Planned Value Cost",
    'Table'[Date]<=MAX('Table'[Date]))

 

Arul_0-1680518583210.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


yaseenhamid_0-1680536629141.png

yaseenhamid_2-1680536796115.png

 

Thanks for replying but this didnt solve the problem. I'm getting above posted results. I've give the link to excel file & Pbi file as well.   

https://1drv.ms/f/s!AtA5KhyKZ26ErWemIQKLBYToSrRp?e=QflE0L

Sorry. It worked when i removed heirarchies from date field. Would aapreciate if you could explain why this doenst work when date is in the form of heirarchies. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors