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
wbarnold
New Member

Calculating Pending/Backlog Using a Calendar Table

I am trying to calculate the backlog in our company based on a calendar table.  I have two tables, one is a calendar table and the second table contains the milestone dates and unique identifer for each request ('vWBA-Milestones).  Using import, I've managed to calculate the backlog (incomplete) for each date in a year using the calendar table, based on the date that each request was received and the date the work was released.  

 

Pending (All) = CALCULATE(
DISTINCTCOUNT('vWBA-Milestones'[RequestId]),
FILTER('vWBA-Milestones','vWBA-Milestones'[RequestDate Clean]<=MIN(vWBA_BI_Calendar[Calendar_Date]) && 'vWBA-Milestones'[ReleasedDate Clean]> Max(vWBA_BI_Calendar[Calendar_Date])))
 
I need to do the same thing using direct query.   The problem is that there are too many records and SQL throws out an error stating I have exceeded a 64,000 threshold.  I created another calendar table that only includes the first day of the week.  No errors, but I also get back no data.  Each date in the calendar table may or may not have a milestone date that matches in the milestone table.  Does anyone know how to do this or have a suggestion I could try?
1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @wbarnold ,

In my opinion, I'd like to suggest you add more condition to grouping records based on current category fields or add more filter to limit calculation records range.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.