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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Group by Rows then FillDown does not work

Hi,

I have some missing values in the  column "Projektkosten (Geplant) (MFr)". I would like to fill the missing data from the previous "Exportdatum" that has the same "PMS-ID".

 

Sample data:

ID, PMS-ID, Exportdatum, Projektkosten (Geplant) (MFr)

146922.06.2017132.16892
146907.06.20180
146929.06.2018132.16892
146904.06.2019132.16892
146914.06.2019132.16892
146916.06.20190
146925.09.2019134.87092
146909.06.2020134.87092
146907.06.2021134.87092
146903.06.2022134.87092
146910.10.2022134.87092

 

1.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I have used Groupby and fill with the following command

= Table.Group(
#"Sorted Rows1",
{"PMS-ID"},
{{"Rows", each Table.FillDown(_, {"Projektkosten (Geplant) (MFr)"}), type table}}
)

The command works without errors, but does not fill the missing data.

2.PNG

Any idea why the Filldown may not be working?

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @Anonymous ,
the fill down works on null values, not 0. So after you replace 0 by null, you should see the expected result.
Make sure to transform the column to number first to make sure only complete fields will be replaced.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks. it works perfectly. 

ImkeF
Community Champion
Community Champion

Hi @Anonymous ,
the fill down works on null values, not 0. So after you replace 0 by null, you should see the expected result.
Make sure to transform the column to number first to make sure only complete fields will be replaced.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors