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
BenEaton
Frequent Visitor

Snapshot - Rows fitting criteria at certain dates

Community,

 

This one has had me scratching my head for a while now and hoping someone can help.  Similar to other posts and requirements for "open tickets", I'm looking to find a snapshot of my data at the first of each month, when the data fulfils criteria:

 

Given a table such as this:

Ticket NumberTeamTicket AgeTypeOpenedClosed
1A17High01-Apr-1918-Apr-19
2A64High30-Apr-19 
3B45High19-May-19 
4B1High20-Jun-1921-Jun-19
5A12Medium21-Jun-19 
6B39High22-May-1930-Jun-19
7A1High23-Jun-1924-Jun-19
8B9Low24-Jun-19 
9C1High25-Jun-1926-Jun-19
10C1High26-Jun-1927-Jun-19

 

Problem:  I need to find, at the start of each month (01-MMM-YY), how many tickets of a certain type were open and over a certain number of days old, per team.

 

I can find something similar by adding a column to my date table, but this gives me a headline number I can't break down by team, as below:

Count =
CALCULATE (
COUNTA ( Records[Ticket Number] ),
FILTER (Records,
Records[Type] = "High"
&& Records[Opened] <= 'Date'[Date]
&& (Records[Closed] > 'Date'[Date]  ||   ISBLANK ( Records[Closed] ) )
&& Records[Ticket Age] >= 10
)
)

 

Hopefully I'd be able to find something similar to this output, either as a new table, column, measure etc - but crucially, filterable by Team, because Team is linked to other dimensions I require:

 

TeamMonthCount
A01-Apr 
A01-May1
A01-Jun1
A01-Jul2
B01-Apr 
B01-May 
B01-Jun2
B01-Jul1
C01-Apr 
C01-May 
C01-Jun 
C01-Jul 

 

I've attempted using SUMMARIZECOLUMNS but haven't had much success, any chance some DAX ninjas are able to assist?

 

Thanks in advance9i,

 

Ben

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@BenEaton ,

 

Problem:  I need to find, at the start of each month (01-MMM-YY), how many tickets of a certain type were open and over a certain number of days old, per team.


Could you please clarify more about "over a certain number of days old"?

 

Regards,

Jimmy Tao

Jimmy,

Of course - simply another filter, where I've got "ticket age", it would be greater than or equal to ten, the requirement being that we wouldn't be concerned by high priority items that were less than ten days old, but want to measure those at the start of each month (or nominated date in time) that are high priority, by team, that have a "ticket age" greater than ten.

Regards,
Ben

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.