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

calculate working days for the displayed table visual

Hi all, 

 

I have a table of employees with thier sector and a calendar table. On my calendar table i have a column which return 0 for Holidays and weekends and 1 for workings days. 

 

I created a mesaure for return total workingdays 

 

WorkingDays= 
SUM( _calendar[working Days] ) 

 

 

However when i place a visual table or matrix and add the employee names + the measure and then select a mesure in the slicer the table is not being filtered with the selected sector, it still showing all employees. Although when i remove the measure it shows all employees related to the selected slicer. 

 

Waht i am trying to achive is: 

 

If i have 2 employees filtered and the month is 22 days working days, on the visual table or matrix will display 22 for each and 44 as total working days.

 

Any thoughts? 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi I found a soluction. 

 

I just created a second measure: 

 

WorkingDays2= 
Calculate( Values(calendar [Month]), workingdays)  

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Is there a relationship between your two tables? Can you create a sample .pbix file for us to test? Please don't contain any real data and sensitive information.

 

 

Best regards

Icey

Anonymous
Not applicable

Hi I found a soluction. 

 

I just created a second measure: 

 

WorkingDays2= 
Calculate( Values(calendar [Month]), workingdays)  

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.

Top Solution Authors