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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

calculating the percentage of several departments that belong together

Hello, I have a problem calculating the percentage of several departments that belong together. When I use filters, the average is the number of departments, not the time / absence of all departments.

 

If i have this file, how do I get it right. I want to filter between Main dept and down to specifik dept?

 

I wan´t to calculate absence short/worktime and the same for long. I don´t want to sum all the rows percent, I want to calculate the percentage of all rows that belong together if I filter on it.

 

DateDeptMain DeptAbsence shortAbsence LongWorktime
Jan9103Sales  623,2
Jan9104Sales139,6 5202,0
Jan9106Sales32,8 934,8
Jan9107Sales52,1 5194,3
Jan9111Marketing  656,0
Jan9117Marketing68,8 5196,4
Jan9118Marketing41,0 1008,0
Jan9119Marketing168,941,04827,2
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , expected output is not clear. can you share that.

 

Try a measure like divide(sum(Table[Absence]), sum(Table[Worktime]))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , expected output is not clear. can you share that.

 

Try a measure like divide(sum(Table[Absence]), sum(Table[Worktime]))

Anonymous
Not applicable

now I realize this was exactly as easy as I thought it would be. Thanks 

(I am a biginner so sorry)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors