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
92470am
New Member

Calculating total cases created per day, how many were closed and by who, how many stayed open.

Hi,

 

I have to calculate the total # of cases created per day. Of those cases, how many were closed, who closed them and also how many of the original cases were still open at the end of the day. I want a daily look, weekly look, and monthly look.

 

Thank you,

 

Audra

1 REPLY 1
v-sihou-msft
Employee
Employee

@92470am

 

In this scenario, you need to have a full calendar table (connecting your Case table on date column) with all different date parts columns (Year, Quarter, Month, Day and Week) so that data can aggregate on corresponding level. You also need a column for tagging a case is closed or not. Then you just need to create a measure to calculate daily created cases.

 

Daily Created Cases Volume =
CALCULATE ( COUNTA ( Case[Case] ), ALLEXCEPT ( Case, Case[CaseCreatedDate] ) )

To calculate daily closed cases, just filter the table context with the [IsClosed] column.

 

 

Daily Closed Cases Volume =
CALCULATE (
    COUNTA ( Case[Case] ),
    ALLEXCEPT ( Case, Case[CaseCreatedDate] ),
    FILTER ( Case, Case[IsClosed] = 1 )
)

Regards,

 

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.