Forum Discussion

DavidGM's avatar
DavidGM
Helper I
4 years ago
Solved

PowerBI help!

Hi All, 

I have attached the image of problem I am trying to solve, trying to draw this chart on powerBI... 

Planned calculation is 295/4= 73.75 (Blue line in the graph) Let say I am taking 295 from table X than dividing by 4, for the 4 weeks.. Thanks

PI6 Start = 295

sprint 34= 295 - 73= 221

sprint 35= 221-73= 147

sprint 36= 147-73 = 73

sprint 37= 73-73= 0

 

  • Hi DavidGM ,

    According to your description, I create a sample.

    In my understanding, you want to create a new column Planned and show it on the line chart, if this is the case, here's my solution.

    1.In Power Query, add an index column starts from 0.

    2.Create a calculated column.

    Planned =
    VAR _P = 295 - [Index] * 295 / 4
    RETURN
        IF ( _P < 0, 0, _P )
    

    3.Sort the Week column by Index.

    Get the expected result.

    I attach my sample below for reference.

     

    Best Regards,
    Community Support Team _ kalyj

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • Hi DavidGM ,

    According to your description, I create a sample.

    In my understanding, you want to create a new column Planned and show it on the line chart, if this is the case, here's my solution.

    1.In Power Query, add an index column starts from 0.

    2.Create a calculated column.

    Planned =
    VAR _P = 295 - [Index] * 295 / 4
    RETURN
        IF ( _P < 0, 0, _P )
    

    3.Sort the Week column by Index.

    Get the expected result.

    I attach my sample below for reference.

     

    Best Regards,
    Community Support Team _ kalyj

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.