Forum Discussion
DAX Lookupvalue help please
- 2 years ago
berkero
try the followingcreate a calculate column as follow.:
col =
Var ds =
offset ( -1,
summarize (
tbl_name,
tbl_name[representative id],
tbl_name[visit date] ,tbl_name[visit queue],
tb_name[visitend time]
) ,orderby(tbl_name[visit_queue] , asc ) ,
partitionby(tbl_name[representative id] , tbl_name[visit date] )
)
return
selectcolumns(
ds,
"res" , tbl_name[visitend time] )
let me know if this works for you .
if this helped you solving your problem,
make sure to give it a thumbs up and accept it as a solution so others can find it quickly.
- 2 years ago
Hi,
This calculated column formula works
Column = CALCULATE(MAX(Data[Visit End Time]),FILTER(Data,Data[Representative ID]=EARLIER(Data[Representative ID])&&Data[Visit Date]=EARLIER(Data[Visit Date])&&Data[Visit End Time]<EARLIER(Data[Visit End Time])))Hope this helps.
berkero
try the following
create a calculate column as follow.:
col =
Var ds =
offset ( -1,
summarize (
tbl_name,
tbl_name[representative id],
tbl_name[visit date] ,
tbl_name[visit queue],
tb_name[visitend time]
) ,
orderby(tbl_name[visit_queue] , asc ) ,
partitionby(tbl_name[representative id] , tbl_name[visit date] )
)
return
selectcolumns(
ds,
"res" , tbl_name[visitend time] )
let me know if this works for you .
if this helped you solving your problem,
make sure to give it a thumbs up and accept it as a solution so others can find it quickly.
- berkero2 years agoNew Member
It works.. thank you so much