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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
RobertoMonzon
Frequent Visitor

Help to add grand average line in line chart in Power BI

I have a table with three columns: "Workers" where I have the names of my employees, "Stage" where I have the names of the stages where the work process goes, and finally, I have the "Duration" column, which is the time it takes for an employee to complete that stage.

I created a line chart with "Stage" on the X-axis, the average "Duration" on the Y-axis, and "Workers" in the Legend. My chart works as I want it to; it creates points if the worker stays only in that stage where they started, and it creates a line to move to the next stage.

My problem is that I want to create a secondary line to represent the overall average, but it seems impossible. I don't know what to do, and I hope someone can help me.

 

This is how it looks

RobertoMonzon_0-1715309593402.png

 

And this is how it supposes to look

RobertoMonzon_1-1715309753678.png

 

The white dotted line represents the general average per stage, but I made it by making another line graph behind the original and removing the legend. The problem is that it is only a visual effect and eventually when my column has more stages and I have to move with the scroll bar to the right I will not be able to move the graph that is behind

 

Help me please

1 REPLY 1
lbendlin
Super User
Super User

One way to do that would be to add a fake worker named "Average" to your source data in Power Query or in a calculated table in Power BI.  That would only work if the chart doesn't need to be interactive.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.