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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
IvanS
Helper V
Helper V

Nr. of open overdue tickets by date

Hi all,

I have standard table that consists of tasks with columns below:

1. Task ID

2. Status

3. Create date

4. Due date

5. Close date

 

Based on other user's topic here, I have manage to create mix of measures that are calculating Nr. of Open tickets by date (see below measures). For this I needed to create copy of Tasks KPI table (1st is connected to date table by Close date, and 2nd is connected by Create date).

Measure_ClosedCount = IF(ISBLANK(COUNT('cdata_FACT_Tasks KPI'[ClosedTime])), 0, COUNT('cdata_FACT_Tasks KPI'[ClosedTime]))

Measure_OpenedCount = IF(ISBLANK(COUNT('cdata_FACT_Tasks KPI - Copy'[Id])), 0, COUNT('cdata_FACT_Tasks KPI - Copy'[Id]))

Measure_ClosedSUM = SUMX('Date table', [Measure_ClosedCount])

Measure_OpenedSum = SUMX('Date table',[Measure_OpenedCount])

Measure_PendingCount = [Measure_OpenedSum] - [Measure_ClosedSUM]

Measure_OpenTasksHistory = 
CALCULATE (
    SUMX ( 'Date table', [Measure_PendingCount] ),
    FILTER ( ALL ( 'Date table'[Date] ), 'Date table'[Date] <= MAX ( 'Date table'[Date] ) )
)

 

Now, I would like to calculate the Nr. of Open Overdue tickets by date and exclude tickets in status "Canceled".

Open Overdue means that ticket was not closed (close time is blank) or was closed after due date.

 

Perhaps, we can adjust the existing measures but I am not that profficient in DAX so any help is much appreciated!

 

Thank you

Ivan

1 REPLY 1
Greg_Deckler
Super User
Super User

@IvanS See if this helps: Open Tickets - Microsoft Power BI Community


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.