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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

How to generatively fill 'null' cells

Hi guys,

 

Apologies for the confusing title, I'm not quite sure how to best word this issue!

 

I have a table that has two main columns: Account ID and Customer Name. The Customer Name column contains a lot of blanks but the Account ID field is complete, so I was wondering if there's a way to get PowerBI to recognise that Account ID 21 is used against the Customer Name, and therefore to fill in any blanks as a result of this? I know this is really confusing, here's an example:

 

FJH2024_0-1709718232535.png

 

So is there a way to get PowerBI to recognise that Equip = Account ID 21, therefore any rows that have the Account ID 21 should fill any blank cells in the Customer Name column with Equip?

 

I want these null cells filled so I can use the Customer Name as a Slicer.

 

I hope I've been able to explain this well enough, thank you for all help in advance!

2 ACCEPTED SOLUTIONS
PowerBigginer
Helper II
Helper II

Filled_Name = IF( ISBLANK('YourTableName'[Name]), CALCULATE( FIRSTNONBLANK('YourTableName'[Name], 1), FILTER( 'YourTableName', 'YourTableName'[Account_ID] = EARLIER('YourTableName'[Account_ID]) && NOT(ISBLANK('YourTableName'[Name])) ) ), 'YourTableName'[Name] )

Try this column If it helps Mark as a solution!

For more Power BI tips and trick you can visit https://powertipstricks.blogspot.com/ blog

Thanks in advance

View solution in original post

Daniel29195
Super User
Super User

@Anonymous 

output 

Daniel29195_0-1709719575696.png

 

 

sample data used  :

Daniel29195_1-1709719585531.png

 

steps 

step1 : create a config table in power query  , as follow : 

Daniel29195_2-1709719603530.png

1.1 duplicate your table.

1.2 remove duplicates

1.3 filter column1 on not blank 

Daniel29195_3-1709719658153.png

 

 

step2 : 

merge this table with your table on id =  id  and expand the column :  account_name ( in my scenario i named it Column1modified .

Daniel29195_4-1709719709234.png

 

 

step3 : use the replace value feature under transform tab :  ( be sure yo select your orignial account_name column ) 

 

Daniel29195_6-1709719778930.png

 

 

enter any data to replace with . 

 

 

in the code , modifiy the replace 1 with each [ column1modified]: 

Daniel29195_8-1709719836588.png

 

 

 

 

 

let me know if this helps .

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠:

View solution in original post

7 REPLIES 7
_AAndrade
Super User
Super User

And use the Replace Values option like this?:

_AAndrade_0-1709719894890.png

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Daniel29195
Super User
Super User

@Anonymous 

output 

Daniel29195_0-1709719575696.png

 

 

sample data used  :

Daniel29195_1-1709719585531.png

 

steps 

step1 : create a config table in power query  , as follow : 

Daniel29195_2-1709719603530.png

1.1 duplicate your table.

1.2 remove duplicates

1.3 filter column1 on not blank 

Daniel29195_3-1709719658153.png

 

 

step2 : 

merge this table with your table on id =  id  and expand the column :  account_name ( in my scenario i named it Column1modified .

Daniel29195_4-1709719709234.png

 

 

step3 : use the replace value feature under transform tab :  ( be sure yo select your orignial account_name column ) 

 

Daniel29195_6-1709719778930.png

 

 

enter any data to replace with . 

 

 

in the code , modifiy the replace 1 with each [ column1modified]: 

Daniel29195_8-1709719836588.png

 

 

 

 

 

let me know if this helps .

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠:

Anonymous
Not applicable

Wow this is really clever! Thanks so much for your help, I appreciate it 🙂

PowerBigginer
Helper II
Helper II

Filled_Name = IF( ISBLANK('YourTableName'[Name]), CALCULATE( FIRSTNONBLANK('YourTableName'[Name], 1), FILTER( 'YourTableName', 'YourTableName'[Account_ID] = EARLIER('YourTableName'[Account_ID]) && NOT(ISBLANK('YourTableName'[Name])) ) ), 'YourTableName'[Name] )

Try this column If it helps Mark as a solution!

For more Power BI tips and trick you can visit https://powertipstricks.blogspot.com/ blog

Thanks in advance

Anonymous
Not applicable

Hi,

Thank you, this worked perfectly! Really appreciate the help, I would never have been able to create this formula myself! Really appreciate the help 🙂 

_AAndrade
Super User
Super User

Hi,

I don't know if I get your idea, but if you want to replace null values with the same name as the previous row you can use the option Fill-->down.

_AAndrade_0-1709719019052.png

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Anonymous
Not applicable

Hi,

Yes I did think that might have been an option, however the columns contain multiple different Customer Names and Account IDs so when I've tried this it's overwritten all of the other ones above/below it so I don't think this will work. Thank you for the idea, though! 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.