Forum Discussion

rafamorim87's avatar
rafamorim87
Frequent Visitor
2 years ago
Solved

Average column chart problem

Good morning I need to create two column charts that show a line with the average value. I took the measurement by calculating the average and when I made the first graph everything went fine. But ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi rafamorim87 ,

    Based on my testing, please try the following methods:

    1.Create the simple table.

    2.Drag the Day field into the line and column chart X-axis. Drag the income into the Y-axis.

    3.Create the measure to calculate the average.

    Dias = 
    var total_ = CALCULATE(SUM('Table'[Income]), ALL('Table'))
    RETURN
    DIVIDE(total_, 7)

     

    4.Drag the measure into the visual, the result is shown below.

     

    Best Regards,

    Wisdom Wu

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