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

Fill down

Hi All,

 

I have a raw data that's being updated every month. What I need (don't know if it's possible or not) is to fill down the "Country" column, based on the above order.

 

The country's are always in this order:

Albania

Algeria

Argentina

etc.

 

When the new raw data is uploaded it doesn't include the country column, it only includes other columns (columns with values)

 

What I need is to fill down the new rows I've uploaded (new Raw data) with the Country names but in the same order.

At the moment if I use fill Down, it will select the last country name (Zimbabwe) and fill that name to all of the new rows, but I need it to remember the order of Country column and fill first row with Albania, second row with Algeria and so on.

 

Is this possible?

GeorgeGabaroi_0-1653552792365.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following methods. First you need to add an index column, starting from 1.

vzhangti_0-1653900762597.png

vzhangti_1-1653900785149.png

Create a new table and fill out the names of the countries you need to add in order.

vzhangti_2-1653900841081.png

Create a new custom column.

if [Column1] = "" then
let
a= List.Count(#"Added Index"[Column1]),b=List.Count( List.Select(#"Added Index"[Column1], each _ = "")),c=Number.Mod([Index]-(a-b)-1, 3)
in
#"Table (2)"{c}[Column1]
else [Column1]

vzhangti_3-1653900922399.png

Is this what you expect the output to be?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following methods. First you need to add an index column, starting from 1.

vzhangti_0-1653900762597.png

vzhangti_1-1653900785149.png

Create a new table and fill out the names of the countries you need to add in order.

vzhangti_2-1653900841081.png

Create a new custom column.

if [Column1] = "" then
let
a= List.Count(#"Added Index"[Column1]),b=List.Count( List.Select(#"Added Index"[Column1], each _ = "")),c=Number.Mod([Index]-(a-b)-1, 3)
in
#"Table (2)"{c}[Column1]
else [Column1]

vzhangti_3-1653900922399.png

Is this what you expect the output to be?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.