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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
venug20
Resolver I
Resolver I

Fill Data in Blank Rows (Power Query Editor)

Hi Every one,

 

I have sample data like below table.. i want to fill gaps in power bi...

 

Thanks in Advance...

 

CompanyCity
LifeLockTempe
LifeLock 
ChosenList.comScottsdale
Ch osenList.com 
FacebookPalo Alto
Facebook 
Facebook 
Geni 
GeniWest Hollywood
Sla ckerSan Diego
Slacker  
Technorati 
TechnoratiSan Francisco
MahaloSanta Monica
Mahalo 
VeohSan Diego
Veoh 
Jingle NetworksMenlo Park
Jingle Networks 
ProsperSan Francisco
Prosper 
Jajah 
JajahMountain View
UstreamMountain View
Ustream 
Aggreg ate KnowledgeSan Mateo
Aggregate Knowledge 
Sphere 
SphereSan Francisco
MeeVeeBurlingame
MeeVee 
1 ACCEPTED SOLUTION

6 REPLIES 6
Zubair_Muhammad
Community Champion
Community Champion

@venug20

 

Is this your expected result

 

Company City
LifeLock Tempe
LifeLock Tempe
ChosenList.com Scottsdale
ChosenList.com Scottsdale
Facebook Palo Alto
Facebook Palo Alto
Facebook Palo Alto
Geni West Hollywood
Geni West Hollywood
Slacker San Diego
Slacker San Diego
Technorati San Francisco
Technorati San Francisco
Mahalo Santa Monica
Mahalo Santa Monica
Veoh San Diego
Veoh San Diego
Jingle Networks Menlo Park
Jingle Networks Menlo Park
Prosper San Francisco
Prosper San Francisco
Jajah Mountain View
Jajah Mountain View
Ustream Mountain View
Ustream Mountain View
Aggregate Knowledge San Mateo
Aggregate Knowledge San Mateo
Sphere San Francisco
Sphere San Francisco
MeeVee Burlingame
MeeVee Burlingame

@Zubair_Muhammad

 

Yes, Exactly i expected same like which you have filled data...

@venug20

 

I used this

 

let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Company", type text}, {"City", type text}}),
    #"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1),
    #"Trimmed Text" = Table.TransformColumns(#"Added Index",{{"Company", Text.Trim, type text}, {"City", Text.Trim, type text}}),
    #"Sorted Rows" = Table.Sort(#"Trimmed Text",{{"Company", Order.Ascending}, {"City", Order.Descending}}),
    #"Filled Down" = Table.FillDown(#"Sorted Rows",{"City"}),
    #"Sorted Rows1" = Table.Sort(#"Filled Down",{{"Index", Order.Ascending}}),
    #"Removed Columns" = Table.RemoveColumns(#"Sorted Rows1",{"Index"})
in
    #"Removed Columns"

Hi Zubair,

 

My city should be fill based on "Country". Not like "Fill UP" or "Fill Down"....

 

Pls Can any one help on this....

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.