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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
SimoneOS
Frequent Visitor

calculation group not working on a date based measure (working days completed)

I have created time intelligence calculation groups MTD, YTD etc and all measures are working except the onces where i want to show the number of working days completed.

 

SimoneOS_0-1685702763479.png

I have a seperate table with the just the previous working day in

SimoneOS_1-1685702913199.png

 

 

Working days = sum(DateTable[is_workday])

Working Days Completed = calculate([Working days], DateTable[PKDate] <= max(Previousworkingday[previousworkingday]))

 

 Can anyone point me in the right direction?

1 ACCEPTED SOLUTION
SimoneOS
Frequent Visitor

Fixed it by using a flag in the date table for all dates up to previous working day

Working Days Completed = calculate([Working days], DateTable[UPtoPD]=1)

View solution in original post

1 REPLY 1
SimoneOS
Frequent Visitor

Fixed it by using a flag in the date table for all dates up to previous working day

Working Days Completed = calculate([Working days], DateTable[UPtoPD]=1)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors