Forum Discussion
MichaelHutchens
Helper V
2 years agoDAX table with filters and operators
Hi everyone, I'm trying to make a virtual table from an 'Employee' database that returns a list of employees. Each employee in the database might have multiple records, so in this virtual table, I on...
Anonymous
2 years agoNot applicable
Hi MichaelHutchens ,
Please try this DAX:
Table 4 =
VAR EmployeeLatestRecord =
ADDCOLUMNS(
GROUPBY(
'Employee',
'Employee'[Employee ID],
"MaxRecordNumber", MAXX(CURRENTGROUP(), 'Employee'[Record Number])
),
"EmployeeDetails", CALCULATETABLE(
'Employee',
FILTER(
'Employee',
'Employee'[Record Number] = [MaxRecordNumber]
)
)
)
RETURN
FILTER(
EXPANDTABLECOLUMN(EmployeeLatestRecord, "EmployeeDetails"),
'Employee'[Current Employee Email Record] = "Y" || 'Employee'[Employee Status] = "Withdrawn"
)
I'm not sure this is useful, if it doesn't solve your problem, please provide some sample data, thanks!
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.