Forum Discussion

Jpalji's avatar
Jpalji
Frequent Visitor
6 years ago
Solved

How to create line chart by date progression type

Hi,

 

Please advice I have data as following and to create Progression graph by time.

Need to create Progression by date column in Power BI

 

Thanks in advance.

  • dax's avatar
    dax
    6 years ago

    Hi Jpaliji, 

    You could try below measure

    Measure 6 =
    CALCULATE (
        SUM ( t5[p1] ),
        FILTER ( ALL ( t5 ), t5[date] <= MIN ( t5[date] ) )
    )
        + CALCULATE (
            SUM ( t5[p2] ),
            FILTER ( ALL ( t5 ), t5[date] <= MIN ( t5[date] ) )
        )
    

    Best Regards,
    Zoe Zhi

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

4 Replies

  • dax's avatar
    dax
    Community Support

    Hi 

    Jpalji, 

    If you want to create line chart based on date column, you could create chart like below

    If this is not what you want , please correct me and inform me your expected output.

    Best Regards,
    Zoe Zhi

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

    • Jpalji's avatar
      Jpalji
      Frequent Visitor

      Hi dax ,

       

      Thanks for reply, 

       

      Actually I have data as following and I need to create a column in Progression at date in Power BI.

       

      Please advise.

       

       

       

       

       

       

       

       

       

      Thanks in advance

      .

      • dax's avatar
        dax
        Community Support

        Hi Jpaliji, 

        You could try below measure

        Measure 6 =
        CALCULATE (
            SUM ( t5[p1] ),
            FILTER ( ALL ( t5 ), t5[date] <= MIN ( t5[date] ) )
        )
            + CALCULATE (
                SUM ( t5[p2] ),
                FILTER ( ALL ( t5 ), t5[date] <= MIN ( t5[date] ) )
            )
        

        Best Regards,
        Zoe Zhi

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