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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Lahari
Helper II
Helper II

get list of employee names based on 2 dates in a table

Hi Everyone,

 

I have scenario where i have 2 different date columns by name interviewed date and joining date in an employee table. 

Now i want to get list of employee based on interviewed date and joining date. 

In google i have searched many videos and blogs but i found measures showing Sum(tables[sales]) for ship date and order date and measures are as follows

sales for order date = Sum(tables[sales])

sales for ship date = calcaulate([sales for order date],userelationship(calendardate[date],tables[date])

Here i am getting total sales this is ok. But in my scenario i want list of employee names instead of total sales so anyone tell me what i need to change in the measure in order to get the list of employee name details.

 

please help me in writing this measure. Thanks in advance. 

3 REPLIES 3
grazitti_sapna
Resolver I
Resolver I

Hi @Lahari 
You can try using this:-

Employee List =
VAR InterviewedDate = SELECTEDVALUE(EmployeeTable[InterviewedDate])
VAR JoiningDate = SELECTEDVALUE(EmployeeTable[JoiningDate])
RETURN
CONCATENATEX(
FILTER(
EmployeeTable,
EmployeeTable[InterviewedDate] = InterviewedDate &&
EmployeeTable[JoiningDate] = JoiningDate
),
EmployeeTable[EmployeeName],
", "
)

Hope this will help you.
Thank you

Nithinr
Resolver III
Resolver III

@Lahari  Is your question is you will have two slicers interview date and joining date and you need to get candidates based on date selected in slicer? If yes you can create two independent tables and slicers edit interactions to use specific slicer to specific table.

Hi @Nithinr 

 

Yes i have 2 slicers but i dont want 2 independent tables but i need it in single table like

Interviewdated date(9/28/2023)

Joineddate(9/30/2023)

AA
B 
CC

 

or with solution of yours if i create 2 independent tables then after that i need to merge those 2 independent tables by full join and need it as single table. Is that possible to get this output.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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