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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 131 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 95

#3
Hamza H Profile Picture

Hamza H 30 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans