Forum Discussion

MarshalSK's avatar
MarshalSK
Icon for Resolver I rankResolver I
2 years ago
Solved

Average lines for Each Year in Line Chart

Hi Folks, How to create Year wise Average line in line chart ?

  • Hi MarshalSK ,

     

    Based on your description,
    you might consider using the following code:
    My Sample:

    Avg_Sales = AVERAGEX(FILTER('Table', 'Table'[Year] = EARLIER('Table'[Year])), 'Table'[Sales])

    Result is as below.

    Please correct me if I misunderstood your needs.

     

    Best Regards,
    Yulia Yan

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

2 Replies