Forum Discussion

harshad_barge's avatar
6 years ago
Solved

What am I doing wrong?

I am trying to update date in a column where the values are blank .
The DAX is:

 

Position From (N) =
IF (
ISBLANK ( [Position From Date] ),
LOOKUPVALUE (
Fact_Position[Employee_ID],
Fact_Position[From].[Date], VALUE('Ordinary Hours'[Employee_ID])
),
'Ordinary Hours'[Position From Date].[Date]
)
 
The logic is if the "Position From Date" is blank, update it from another column from a table " Fact_Position[From].[Date]"
'Ordinary Hours'[Employee_ID] is stored as text hence the value function to convert it to number.

I am getting blank for blank values. What am I doing wrong?
 
Harshad

3 Replies