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
annie_liu
Helper I
Helper I

How to show percentage of the Average time in another column in Matrix

So I want to show the percentage for the average Open/Closed time in a Matrix table base on another field but with the return of additional calculations.

So I found the Average of Time Percentage by calculating  the field [Open/Closed Time] within my table by making a custom column t to get the Average of Time Percentage field within this table of (([#"Open/Closed Time"]*8)/(2000))) else 0) to get that percentage however I want to show that in a percentage  but it's showing me this within the Matrix instead of what I would like to see that show up in Excel and the column total should show the average total but it's wrong.

annie_liu_0-1683035187819.png

annie_liu_1-1683036355738.png

 

 

 

1 ACCEPTED SOLUTION

hi @annie_liu 

not sure if i fully get you. try to plot a visual with the manager column and two measures like:

Measure1 = AVERAGEX(data, data[closed_at]-data[opened_at])
Measure2 = 
DIVIDE(
    AVERAGEX(
        data,
        data[closed_at] - data[opened_at]
    ),
    (2000/8)        
)

it worked like:

FreemanZ_0-1683114652760.png

View solution in original post

10 REPLIES 10
milanpasschier3
Resolver I
Resolver I

Hey,

 

I will look into this tomorrow! Can you drop a link of your dummy data?

 

Best,

 

Milan

I can give you a sample of the data here..  

closed_atopened_atGroup Manager Open/Closed Time
2/14/2021 19:002/14/2021 17:35A0.06
2/21/2021 19:002/7/2021 9:29A14.40
10/2/2021 22:309/19/2021 0:38B13.91
5/18/2021 16:305/17/2021 21:59B0.77
5/17/2021 20:005/17/2021 18:33B0.06
8/15/2021 20:007/30/2021 11:11C16.37
8/4/2021 3:478/2/2021 0:30C2.14

 

Here's what the result of the matrix supposes to look like..using Dax measure.. I want to see the average time percentage using this calculation. 

annie_liu_0-1683057397326.png

hi @annie_liu 

not sure if i fully get you. try to plot a visual with the manager column and two measures like:

Measure1 = AVERAGEX(data, data[closed_at]-data[opened_at])
Measure2 = 
DIVIDE(
    AVERAGEX(
        data,
        data[closed_at] - data[opened_at]
    ),
    (2000/8)        
)

it worked like:

FreemanZ_0-1683114652760.png

This works however, how do I deal with the subtotal for each column?

hi @annie_liu 

What do you expect to have as the column subtotal?

It would be the average of each column - 7.13 and 2.

Hey man, can you deliver it in an excel file or pbix file with the date column formatted in a date format instead of text?

milanpasschier3
Resolver I
Resolver I

Check the screenshot too: Screenshot of solution.png

milanpasschier3
Resolver I
Resolver I

@milanpasschier3  

 I didn't include my Excel sheet for this to show I got the average of the fields to get the percentage here's what the fields of the Excel sheet sample look like I took the average of the Open/Closed time for each manager...so now I try to get the percentage by taking the average of the Open/Closed time *8 hrs divide by 2000 hrs a year and multiple by 100 to get the percentage..so I try to show that using DAX measures but it's not working.

 

annie_liu_1-1683045239850.png

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.