Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello.
I have a dataset which has gaps in a certain column ('Updates') I would like to fill down according to the distinct values in another column ('Server'):
The values in 'Update' are always in the first unique 'Server' row. However, as not every unique value in the 'Server' column has a number in 'Updates', if I were to fill down in the usual way, 'Updates' values would fill down and spill over into rows corresponding to unrelated 'Server' values, which I do not want.
Therefore, I want to develop a custom function capable of filling down values in the 'Updates' column via the Table.FillDown() function for each respective unique value in the 'Server' column.
However, I am very new to for-loops in Power Query, and I would appreciate some guidance on how to build one for this function.
I presume it would be structured like this:
Any assistance with this would be very much appreciated. Many thanks for reading.
Solved! Go to Solution.
Hi
= Table.Combine(
Table.Group(
Your_Source,
{"Server"},
{{"Data", each Table.FillDown(_,{"Updates"}), type table [Server=number, Events=number, Updates=nullable number]}}
)[Data]
)
Stéphane
Hi @macolmedo10
replace "Server" by "Location" and "Updates" by "Bayer Name"
= Table.Combine(
Table.Group(
Your_Source,
{"Location"},
{{"Data", each Table.FillDown(_,{"Bayer Name"})}}
)[Data]
)
Stéphane
I am not sure what i am doing wrong but it is giving me an error
I am really new . when you mean source it is the excel source yes?
Hi, i have similar problem may you please help me with this?
Hi
= Table.Combine(
Table.Group(
Your_Source,
{"Server"},
{{"Data", each Table.FillDown(_,{"Updates"}), type table [Server=number, Events=number, Updates=nullable number]}}
)[Data]
)
Stéphane
Thank you so much! This worked perfectly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
27 | |
26 | |
22 | |
12 | |
10 |
User | Count |
---|---|
25 | |
25 | |
21 | |
18 | |
11 |