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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.