- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

How to use filters in a visual but ignore them in a measure used in the visual
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
09-17-2024 03:02 PM | |||
01-25-2024 03:53 AM | |||
01-04-2024 12:52 AM | |||
10-21-2024 12:15 PM | |||
06-24-2024 05:00 AM |
User | Count |
---|---|
83 | |
80 | |
47 | |
37 | |
37 |