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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
harshad_barge
Helper I
Helper I

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
1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@harshad_barge 

 

Arguments <Result_ColumnName>, <Search_ColumnName> are in the wrong order.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@harshad_barge 

 

Arguments <Result_ColumnName>, <Search_ColumnName> are in the wrong order.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

By default, LOOKUPVALUE will return blank if it cannot filter down to a single row. 

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

Try as a new column. Share some sample data for lookup


new column in Fact_Position
Position From (N) = IF (
ISBLANK ( [Position From Date] ),maxx(filter('Ordinary Hours','Ordinary Hours'[Employee_ID]=Fact_Position[Employee_ID]),'Ordinary Hours'[Position From Date]),
[Position From Date])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors