web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Case Age between two dates excluding holiday and weekends

(1) ShareShare
ReportReport
Posted on by
Hello
 
I want to:
a. calculate the case age between two dates (created on Date and Completed On date), if the status = Close or Resolved or Cancelled Or
b. Calculate the case age between two dates (created On and Today), if the status = Active
 
in Power BI, with the exclusion of holidays and Weekends.
 
Please note that I have a table which i have created a calendar table where I have specified the workdays and holidays and weekends. See screen shot below.
 
 
Specifically, can someone please help me with the formula to calculate the Case Age in Power BI?
 
this query gives me error, can someone help me correct it
 
Age = IF(Intakes[value.statecode@OData.Community.Display.V1.FormattedValue]=/Active/,
IF(CALENDAR([Work Hours]>0,
DATEDIFF(Intakes[value.createdon@OData.Community.Display.V1.FormattedValue],TODAY(),DAY))
 
THANK YOU IN ADVANCE
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans