Forum Discussion
Powerful
4 years agoFrequent Visitor
Released and Joined Employees count
Hi, I'm new to PowerBI DAX. I have connected data source to a folder where list of employees data dump is placed on regular basis (not daily). Table name called Emp Data, columns are Data Dump Date...
- 4 years ago
Hi, Powerful
You can try the following methods.
Measure:
Count1 = CALCULATE ( COUNT ( 'Table'[Emp ID] ), FILTER ( ALL ( 'Table' ), [Emp ID] = SELECTEDVALUE ( 'Table'[Emp ID] ) && [Data Dump Date] <= SELECTEDVALUE ( 'Table'[Data Dump Date] ) ) )Count2 = CALCULATE ( COUNT ( 'Table'[Emp ID] ), FILTER ( ALL ( 'Table' ), [Emp ID] = SELECTEDVALUE ( 'Table'[Emp ID] ) && [Data Dump Date] >= SELECTEDVALUE ( 'Table'[Data Dump Date] ) ) )Joined = CALCULATE ( COUNT ( 'Table'[Emp ID] ), FILTER ( ALL ( 'Table' ), [Data Dump Date] = MAX ( 'Table'[Data Dump Date] ) && [Count1] = 1 ) )Released = CALCULATE ( COUNT ( 'Table'[Emp ID] ), FILTER ( ALL ( 'Table' ), [Data Dump Date] = MIN ( 'Table'[Data Dump Date] ) && [Count2] = 1 ) )Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PhilipTreacy
4 years agoSuper User
Hi Powerful
There isn't enough information to help you. Please read this
Can you please supply some sample data and an example of the result(s) you are looking for.
Regards
Phil
- Powerful4 years agoFrequent Visitor
Thanks Phil,
I added few more details with sample data.
Please help!