Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
76 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |