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

Subtracting Calculated Columns from Each Other

I have absence data:

IDStartEndDurationDays in MonthWorking DaysLeave EntitlementsDays AvailableAbsenceNet
72702/01/201907/01/2019631232.520.5614.5
72710/03/202011/03/2020231222.519.5217.5
115003/06/201907/08/20196630202.517.57-48.5
115003/06/201907/08/20196630202.517.531-48.5
115003/06/201907/08/20196630202.517.528-48.5

 

Where I'm subtracting [END] - [START] = Duration and then subtracting the ABSENCE from this.

 

However for periods longer than 1 month it groups the total (66 days) rather than individual days (7,31,28) is there a way to get it so the chart is like:

 

IDStartEndDurationDays in MonthWorking DaysLeave EntitlementsDays AvailableAbsenceNet
72702/01/201907/01/2019631232.520.5614.5
72710/03/202011/03/2020231222.519.5217.5
115003/06/201907/08/20196630202.517.5710.5
115003/06/201907/08/20196630202.517.531-13.5
115003/06/201907/08/20196630202.517.528-10.5

 

PBIX attached for better explanation .

https://www.dropbox.com/s/zjizlyun1nuur15/Sample%20Absence.pbix?dl=0

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Have tried

datediff( [START],[END] ,day)

for working day refer : https://www.sqlbi.com/articles/counting-working-days-in-dax/

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

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.