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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Marianna
Frequent Visitor

Help w/ DAX identify "active" from 1 period, then count from this selection closed in diff period

Hello, I need some help with 2 meaures, one is a count and the second is a sum for below criteria:

Step 1: identify list of "active" (from a column) IDs in a specific month, ex, Jan. 

Step 2: from those that were active in Jan (this should be the "Download Date"), identify which ones closed within a 6 months period i.e. Jan till Jun (the period is identified by another column called "Closed Date"). 

Measure 1 => count these IDs that closed

Measure 2 => sum the values of these IDs

 

The month is based on a slicer selection.  I have a date table, linked to a table that has data for all months appended. 

This is an example of the data; in this case, I want to count ID1 because it existed in the beginning of my period, but I want to exclude ID2

Marianna_0-1684738785922.png

 

Appreciate your help!

 

1 REPLY 1
amitchandak
Super User
Super User

@Marianna , refer if a similar approach can help, in the blog and file

 

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

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors