Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I am counting incidents which were open and 3 years and over 3 years old.
I have a measure like this:
CALCULATE(
COUNT(Incidents[IncidentID]),
FILTER( Incidents,
Incidents[Status] = "Open"
&& TODAY() - Incidents[DateOpened] >= 365 * 3 )
)
I would like to see the table like this:
i.e,: In April 2022 there was one incident which was created on or before April 2019 in "Open" status.
Any way to edit the above measure to include this?
Thanks!
could you pls provide the sample data?
Proud to be a Super User!
I have attached my Gibhub link with PBI Incidents.pbix file.
Thanks for the reply. However, the output is not correct.
The status would be irrelevent for some old incidents in past years as the current status shows closed. I think using Closed Date and Incident date, we might be able to find the count.
@Anonymous
you can try this
Proud to be a Super User!
Thanks for the reply. However, including 'status' in the measure calculation would give me a wrong count. This is because,
Let's consider Jan 2022 period to see open incidents older than Jan 2019.
In this case, an incident 'A' older than Jan 2019 which was open in Jan 2019 and got closed on July 2022 will show as 'closed' status in my current data extraction snapshot.
So, going by status filter would exclude this incident.
User | Count |
---|---|
84 | |
80 | |
72 | |
71 | |
55 |
User | Count |
---|---|
108 | |
106 | |
93 | |
85 | |
67 |