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
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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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