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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.