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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
GerM940
New Member

Filling in Blanks with previous Entry

Hi there,

 

Forgive me if this has already been solved but I cant find a solve that is working for me.

I have a table of date times like this:

Start Time Time of Max
01/01/2020  00.00 
01/01/2020 03.00 
01/01/2020 06.00 
01/01/2020 09.00 
01/01/2020 12.0001/01/2020 12.00
01/01/2020 15.00 
01/01/2020 18.00 
01/01/2020 21.00 
02/01/2020 00.00 
02/01/2020  00.00 
02/01/2020 03.00 
02/01/2020 06.00 
02/01/2020 09.00 
02/01/2020 12.00 
02/01/2020 15.00 
02/01/2020 18.00 
02/01/2020 21.0002/01/2020 21.00
03/01/2020 00.00 

 

But I want it to add a column like this:

Start Time Time of MaxTime of Max (2)
01/01/2020  00.00  
01/01/2020 03.00  
01/01/2020 06.00  
01/01/2020 09.00  
01/01/2020 12.0001/01/2020 12.0001/01/2020 12.00
01/01/2020 15.00 01/01/2020 12.00
01/01/2020 18.00 01/01/2020 12.00
01/01/2020 21.00 01/01/2020 12.00
02/01/2020 00.00 01/01/2020 12.00
02/01/2020  00.00 01/01/2020 12.00
02/01/2020 03.00 01/01/2020 12.00
02/01/2020 06.00 01/01/2020 12.00
02/01/2020 09.00 01/01/2020 12.00
02/01/2020 12.00 01/01/2020 12.00
02/01/2020 15.00 01/01/2020 12.00
02/01/2020 18.00 01/01/2020 12.00
02/01/2020 21.0002/01/2020 21.0002/01/2020 21.00
03/01/2020 00.00 02/01/2020 21.00

 

I need it to be a DAX query too.

1 REPLY 1
lbendlin
Super User
Super User

You likely don't need to do this in DAX. Power Query has a "Fill Down" transformation that can do that for you.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.