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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lennox25
Post Patron
Post Patron

How to work out Average Hours Per Output for each store

Here is my table. 

I need to work out in Power Bi what I have in Excel (which is highlighted in Yellow) then add to a line graph (again whats highlighted in yellow) 

lennox25_0-1701160645399.png

To produce this graph 

lennox25_1-1701160737181.png

There is a Timesheet Table and an Output Table which are not related.

3 REPLIES 3
Anonymous
Not applicable

Hi @lennox25 ,

 

I create a sample in Excel and load it into Power BI.

vrzhoumsft_0-1701313840445.png

vrzhoumsft_1-1701313856589.png

I suggest you to do some transformation in Power Query Editor.

New Table:

vrzhoumsft_2-1701314855818.png

I suggest you to create a measure and then use condtional formatting for value field.

Background for Hrs = 
IF(MAX('Table'[Level 1]) = "Hrs per output","yellow")

Currently Power BI doesn't support us to use conditional formatting for row header. Result is as below.

vrzhoumsft_4-1701315583466.png

 

Best Regards,
Rico Zhou

 

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

 

 

 

Hi  -Thank you for taking the time. Sorry if you misunderstood but what I need is to be able to create wither a caluclated column or measure to work out the average between time in hours and output for each store and then be able to work out (if possible the average of both). What I highlighted in my diagram was what I need PBI to do not highlighted in power bi itself. I hope I have explained my issue better now. Thank you

swikritee_p
Resolver II
Resolver II

@lennox25 , In this case you need to have additional rows in your master table or Sub/Super master table. 

If you only want one of them you can use isinscope to switch the total 

 

I found this blog having example of additional total rows 

https://medium.com/microsoft-power-bi/power-bi-formatted-p-l-with-custom-sub-totals-and-blank-rows-e...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.