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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors