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
Anonymous
Not applicable

Stuck trying to fill cells in PowerQuery

I am fairly new to PowerQuery and still learning.   I have a query that is very close to what I need (this file is made smaller for clarity withy rows and columns removed)

 

NTGFileImage.jpg

 

For Members with a single line entry, there is no problem as this is what I need - e.g lines 266 and 647 and others lower down

The problem is for members with multiple roles where they do training course when in a specific role - e.g. Member 811 (Helen) who has eight separate roles.   I cannot seem to work out how to do the following

  • For Courses 1 to 4 (and other columns like them) where there is a single date entry in all the roles (rows), or multiple identical date entries, I need to fill the other blank cells in that column with the same date already in that column.
  • For Courses 5 and 6, I need to populate any blanks with the most recent date, leaving the others as they are

I'm sure it must be 'obvious' to experienced users, but I am stuck......and very frustrated.

 

I do hope someone can help - thanks in advance !!

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Please refer to:

https://radacad.com/grouping-in-power-query-getting-the-last-item-in-each-group

https://www.excelcampus.com/library/fill-down-blank-null-cells-power-query/

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks !!

 

Only just seen the response - sorry for the delay !

@Anonymous Please mark one or both as the solution that helped so this thread can be closed, or post back if you still have questions.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
MattAllington
Community Champion
Community Champion

this data structure is not the best. Have you considered unpivoting the columns?  Halfway tthrough this article I show you how. https://exceleratorbi.com.au/understanding-power-query-combine/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.