Forum Discussion

yaseenhamid's avatar
yaseenhamid
Frequent Visitor
3 years ago
Solved

Need help Creating chart with 2 commulative lines in power Bi

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

-I m importing this data in excel. 

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

-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.

 -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. 

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

 

  • 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]))

     

    Thanks,

    Arul

3 Replies

  • Arul's avatar
    Arul
    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]))

     

    Thanks,

    Arul