Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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)
| 14 | 69 | 22.06.2017 | 132.16892 |
| 14 | 69 | 07.06.2018 | 0 |
| 14 | 69 | 29.06.2018 | 132.16892 |
| 14 | 69 | 04.06.2019 | 132.16892 |
| 14 | 69 | 14.06.2019 | 132.16892 |
| 14 | 69 | 16.06.2019 | 0 |
| 14 | 69 | 25.09.2019 | 134.87092 |
| 14 | 69 | 09.06.2020 | 134.87092 |
| 14 | 69 | 07.06.2021 | 134.87092 |
| 14 | 69 | 03.06.2022 | 134.87092 |
| 14 | 69 | 10.10.2022 | 134.87092 |
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.
Any idea why the Filldown may not be working?
Solved! Go to Solution.
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
Thanks. it works perfectly.
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |