Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
mstrick
Regular Visitor

Filtering Measure by Two Different Date Columns - Not matching manual filtering

Hello!
I am trying to create a count of incidents in our backlog at the end of each month using historical data. I want this to be dynamic as it will need to be updated each month with the new data. Logically, I am looking to see if there was an incident that was created before the end of the month and it is resolved after the end of the month. I currently have the following measure defined:

 

Backlog =
    CALCULATE(
        COUNTROWS('Incidents'),
        'Incidents'[Created] <= EOMONTH(SELECTEDVALUE('Calendar'[Month Year]),0),
        'Incidents'[Resolved] > EOMONTH(SELECTEDVALUE('Calendar'[Month Year]),0)
    )
 
My 'Incidents' table is connected to the 'Calendar' table using *:1 active relationship from the "Created" date column in 'Incidents' to "Date" column in 'Calendar'. I have created the "Month Year" column to be represented in the slicer.
 
Currently this measure is filtering the 'Incident' table, but showing a number that is less than what is expected. When I use the measure, I see a count of 87 Incidents however, when I manually filter the table to check, I see 149 incidents that follow the conditions I am expecting.
 In Visualizations Pane with testing filter for November:
mstrick_0-1707147132678.png
Manually Filtering Data Table:
mstrick_1-1707147307082.pngmstrick_2-1707147329159.pngmstrick_3-1707147368393.png

 

Any ideas as to why these numbers are not matching?

Is my measure incorrectly written OR is there something to do with the relationships in the model to the Calendar Table?

 

Any help is appreciated!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mstrick , follow the approach of HT Analytics Current/Active employee

 

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU

 

Files are attached

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@mstrick , follow the approach of HT Analytics Current/Active employee

 

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU

 

Files are attached

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak This was perfect! Thank you for helping me and adding in the additional material!

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors