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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nhutruong
Frequent Visitor

Autofill null value based on one column data - using dax calculated column

Dear all,

 

Currently my data base looks like the picture below. with many empty row, each items have a serial no. attached.

I want value to look like the desired output column.

 

I have searched for an answer in a different thread, using calculate (max(datacurrent), filter(table, item = earlier (items). 

But the output I get look like the current output column.

 

Thank you for your help.

 

 

nhutruong_0-1727174157123.png

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

Column = LOOKUPVALUE(Data[Data current],Data[Serial],CALCULATE(MIN(Data[Serial]),FILTER(Data,Data[ITEM]=EARLIER(Data[ITEM])&&Data[Serial]>=EARLIER(Data[Serial])&&Data[Data current]<>BLANK())),Data[ITEM],Data[ITEM])

Hope this helps.

Ashish_Mathur_0-1727233931143.png

 


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

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

Column = LOOKUPVALUE(Data[Data current],Data[Serial],CALCULATE(MIN(Data[Serial]),FILTER(Data,Data[ITEM]=EARLIER(Data[ITEM])&&Data[Serial]>=EARLIER(Data[Serial])&&Data[Data current]<>BLANK())),Data[ITEM],Data[ITEM])

Hope this helps.

Ashish_Mathur_0-1727233931143.png

 


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

Hi Phil,

 

Thank you for your reply.

 

Unfortunately, I do not have access to the server to use a solution under power query. I can only process data on the surface using dax.

Moreover, my data does not sort clearly according to items and serial no. as my screenshot.

 

If you have a possible solution using dax, it would be greatly appreciated.

 

Thank you.

 

@nhutruong 

 

OK no problem, but you should state the limitations of sample data you post so that you can get the best answer without wasted time.

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

@nhutruong 

 

Does it have to be DAX?

 

In Power Query you'd right click on the Data current column header and then Fill -> Up

 

PhilipTreacy_0-1727174850450.png

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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