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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors