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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Performing Fill Up using DAX

Dear all,

 

First of all, thanks for taking the time to read my post. I am quite new to DAX/Power BI and thus really appreciate the help:

 

I like some help to find out if its possible to write a DAX to perform "Up fill"; I would like to use value from a later timestamp to fill in blank fields from in a column:

 

Using this same question as an example, does anyone knows how I can do up filling instead?

 

Meaning from the column with datetime and value as below:

                   Datetime       Value              

1. 01/01/2017, 2:00 AM - 500

2. 01/01/2017, 2:30 AM - blank

3. 01/01/2017, 4:00 AM - 850

4. 01/01/2017, 6:00 AM - 600

 

 I need:

                   Datetime       Value              

1. 01/01/2017, 2:00 AM - 500

2. 01/01/2017, 2:30 AM - 850

3. 01/01/2017, 4:00 AM - 850

4. 01/01/2017, 6:00 AM - 600

 

i.e. I need to replace the "blank" value at 01/01/2017, 2:30 AM with the value at 01/01/2017, 4:00 AM.

 

Blanks like the above happens through several spots in my column, hence I need to write a DAX for this. I know that the above can be done via the Fill function in the Power Query editor but I can't really run query all the time as my data source is a secured SQL server which I can only connect to at specific locations.

 

BTW I saw the DAX written for Fill Down i.e. replace the 01/01/2017, 2:30 AM with the value at 01/01/2017, 2:00 AM instead

 

https://community.powerbi.com/t5/Desktop/Dax-fill-down-in-formula/td-p/318991

 

Not sure if the DAX in this thread can be written to Fill Up instead, thanks!

 

Regards,

AY80

1 ACCEPTED SOLUTION

Check this one

 

https://community.powerbi.com/t5/Desktop/Find-next-value-by-date/td-p/503446

 

If required change sorting and min/max function.

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Look forward to a reply from the community on this..

Check this one

 

https://community.powerbi.com/t5/Desktop/Find-next-value-by-date/td-p/503446

 

If required change sorting and min/max function.

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.