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
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
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.