March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I have a ticketing system to manage IT incidents. Each ticket has a creation and close date (close date can be empty). I need a visual to show how many tickets were created and closed in each month and also how many remain open at the end of each month.
The visual should show only the last 12 months, but to calculate how many tickets are open it must include all the history because we can have tickets still open since more than 12 months ago.
I have this measure to calculare how many tickets are active at the end of each month:
you will likely want to use the filter keyword which would look something like this
Remaining Open =
VAR created_jiras =
CALCULATE(
COUNT(Jira[Jira]),
FILTER(
ALL('Calendar'),
Jira[Creation date] <= MAX('Calendar'[Date])
)
)
VAR closed_jiras =
CALCULATE(
COUNT(Jira[Jira]),
FILTER(
ALL('Calendar'),
Jira[Closed date] <= MAX('Calendar'[Date]) &&
Jira[Closed date] <> BLANK()
)
)
VAR open_jiras = created_jiras - closed_jiras
RETURN
IF(open_jiras < 0, 0, open_jiras)
it is possible that you have other filters that you might want to preserve which could require a slight editing of the code.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |