Forum Discussion
Jaime_FOS
6 years agoRegular Visitor
Lookup value based on isfiltered
Hi, I have a table listing in my report that shows a person's name and their status e.g. 'working', homeworking' or 'out of office'. I'm using a lookupvalue to return this status - LOOKUPVALUE(AB...
- 6 years ago
Hi Jaime_FOS
try a measure like
Measure = var SelectedDate = IF(ISFILTERED('CrossJoin Table 1'[CAL_DATE]), SELECTEDVALUE('CrossJoin Table 1'[CAL_DATE]), TODAY()) var CurrentEmployee = MAX('CrossJoin Table 1'[EmployeeID]) var Result = CALCULATE(MAX(ABSENCE_DATA[Employee Status]), ABSENCE_DATA[startdate].[Date] = SelectedDate, ABSENCE_DATA[EmployeeID] = CurrentEmployee ) RETURN COALESCE(Result,"Working")
az38
6 years agoCommunity Champion
Hi Jaime_FOS
try a measure like
Measure =
var SelectedDate = IF(ISFILTERED('CrossJoin Table 1'[CAL_DATE]), SELECTEDVALUE('CrossJoin Table 1'[CAL_DATE]), TODAY())
var CurrentEmployee = MAX('CrossJoin Table 1'[EmployeeID])
var Result = CALCULATE(MAX(ABSENCE_DATA[Employee Status]), ABSENCE_DATA[startdate].[Date] = SelectedDate, ABSENCE_DATA[EmployeeID] = CurrentEmployee )
RETURN
COALESCE(Result,"Working")- Jaime_FOS6 years agoRegular Visitor
This worked perfect! Thanks 🙂