Reply
Shawkins566
Helper I
Helper I

Percentage Measure Difficulty in a Table

Hi,

 

I have timesheets and they are broken down by Name, Category and Time Spent, I am trying to show in a table format what the percentage of each person's total time is being spent on each Category.  This is an example of what I want it to look like below:

 

NameCategoryTime SpentPercentage
SarahReports40100%
JackProject1012.50%
JackMeetings3037.50%
JackReports2531.25%
JackTraining1518.75%
EmmaMeetings2550%
EmmaProject2550%

 

I can't seem to work it out, if anyone knows how, please let me know.

 

Thanks

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

Try the below:

Percentage = 
var totalTimePerName = CALCULATE(SUM('Table'[Time Spent]), REMOVEFILTERS('Table'[Category])) 
return DIVIDE(SUM('Table'[Time Spent]), totalTimePerName)

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

Try the below:

Percentage = 
var totalTimePerName = CALCULATE(SUM('Table'[Time Spent]), REMOVEFILTERS('Table'[Category])) 
return DIVIDE(SUM('Table'[Time Spent]), totalTimePerName)
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)