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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
kuzya
Frequent Visitor

Keep count of current events by the end of month and plot

Hello Power Bi community,

 

I need your expertise in finding a way to plot current "Open" events by the end of each month.

I have records that were opened and closed on a given time period. By the end of the month, I need to account those currently "Open" events and plot the in a bar chart. For example, I have a total of 11 open events (opened through different periods of time, I Opened 2 events in Feb and Closed 2 Events in Feb as well. How can I count those 11 currently open events to be added in Feb and keep that count for the subsequent months (11 by end of Feb, 2 opened in march ->3 closed in march = (11+2)-3 = 10 by end of March.......)?

kuzya_0-1677620218598.png

 

I created a relationship calendar to combine opened and closed dates data. I would appreciate your support as I tried multiple options to account those open events, but it plots them in the date they were created and not at the end of the month.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kuzya , refer if this can help

 


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...

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

@kuzya , refer if this can help

 


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...

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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 ,

Thank you so much for your guideance and for your contributions in this community! The video explained clearly what I was looking for! 

If someone wants to know the DAX formula is:

Current Count = 

 CALCULATE(COUNTX(FILTER('Table','Table'[date_opened] <= MAX('Relationship Dates'[Date]) && (ISBLANK('Table'[date_closed]) || 'Table'[date_closed] > MAX('Relationship Dates'[Date]))),'Table'[Event_id]),CROSSFILTER('Relationship Dates'[Date],'Table'[date_opened],None))
Output:
kuzya_0-1677687929279.png

Cheers!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors