Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |