Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
rafamorim87
Frequent Visitor

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 in the second, no.
The value to be shown is the same as the first graph. In the second graph it is not only showing the wrong value, but it is also changing. The value should be the same as it is the average.
Could anyone help me with how to resolve this?DUVIDA.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @rafamorim87 ,

Based on my testing, please try the following methods:

1.Create the simple table.

vjiewumsft_0-1714380254371.png

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

vjiewumsft_1-1714380269996.png

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.

vjiewumsft_2-1714380277209.png

 

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.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @rafamorim87 ,

Based on my testing, please try the following methods:

1.Create the simple table.

vjiewumsft_0-1714380254371.png

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

vjiewumsft_1-1714380269996.png

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.

vjiewumsft_2-1714380277209.png

 

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.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors