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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kkalyanrr
Helper V
Helper V

DAX expression to fill the blank values with previous value

Hello,

 

I've a datamodel simmilar to the below ones, and looking for a DAX expression to get the required result.

 

Thanks

 DAX1.JPGDAX2.JPG

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

=LOOKUPVALUE(Data[Stage],Data[ContractID],Data[ContractID],Data[CreateDate],CALCULATE(MIN(Data[CreateDate]),FILTER(Data,Data[ContractID]=EARLIER(Data[ContractID]))))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

=LOOKUPVALUE(Data[Stage],Data[ContractID],Data[ContractID],Data[CreateDate],CALCULATE(MIN(Data[CreateDate]),FILTER(Data,Data[ContractID]=EARLIER(Data[ContractID]))))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi kkalyanrr,

 

If you can access the query editor, select the column you want to fill and select "Fill Down" in the "Transform" tab of the ribbon.

 

Cheers

Sorry @Anonymous  , I am looking for a DAX expression, cause these all are calculated columns.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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