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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.