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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
NewbieJono
Post Partisan
Post Partisan

Snapshots at point in time

Hello, i have a table with

 

Start Date, Case Ref, Completion Date.

 

if completrion date is blank the case is open, else there will be a date.

 

is there a method i can select a past date from a filter to check how many cases were open at that time. 

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @NewbieJono 

May I ask if your problem has been solved and if you have seen the solution proposed by amitchandak , I think he gives a very detailed solution. For your needs, I have extracted the important parts of his case here to help others better solve the problem. I hope this helps, and iIf it helps, then please consider Accept it as the solution to help the other members find it more quickly.Thank you.

 

Sample data:

vangzhengmsft_1-1626750476002.png

vangzhengmsft_2-1626750496955.png

Result:

vangzhengmsft_0-1626750296646.png

Still Open =
CALCULATE (
    COUNTX (
        FILTER (
            'Table',
            'Table'[Start Date] <= MAX ( 'Date'[Date] )
                && (
                    ISBLANK ( 'Table'[End Date] )
                        || 'Table'[End Date] > MAX ( 'Date'[Date] )
                )
        ),
        ( 'Table'[ID] )
    ),
    CROSSFILTER ( 'Table'[Start Date], 'Date'[Date], NONE )
)

 

Please refer to the attachment below for details

 

 

Best Regards,
Community Support Team _ Zeon Zheng

View solution in original post

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @NewbieJono 

May I ask if your problem has been solved and if you have seen the solution proposed by amitchandak , I think he gives a very detailed solution. For your needs, I have extracted the important parts of his case here to help others better solve the problem. I hope this helps, and iIf it helps, then please consider Accept it as the solution to help the other members find it more quickly.Thank you.

 

Sample data:

vangzhengmsft_1-1626750476002.png

vangzhengmsft_2-1626750496955.png

Result:

vangzhengmsft_0-1626750296646.png

Still Open =
CALCULATE (
    COUNTX (
        FILTER (
            'Table',
            'Table'[Start Date] <= MAX ( 'Date'[Date] )
                && (
                    ISBLANK ( 'Table'[End Date] )
                        || 'Table'[End Date] > MAX ( 'Date'[Date] )
                )
        ),
        ( 'Table'[ID] )
    ),
    CROSSFILTER ( 'Table'[Start Date], 'Date'[Date], NONE )
)

 

Please refer to the attachment below for details

 

 

Best Regards,
Community Support Team _ Zeon Zheng

amitchandak
Super User
Super User

@NewbieJono , similar use case dicussed here

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

Also, check if the attached file after signature can help.

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.