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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Ferraz
New Member

Replacing null value

HI, in powerBI, I need to find a crafty formula to fill in the cells of the last column. Below is the screenshot taken from PowerBI:

screenshot taken from PowerBIscreenshot taken from PowerBI

 

 

To better explain what I need to do, I'll reproduce everything with the following Excel:

BI.jpg

- In the table on the left there is the situation I have. In the table on the right I have represented the situation I would like (and for which I ask you for help)

- "IDRegis" column: represents the identification number of the accounting record. Each accounting entry is made up of multiple lines depending on the specific case.

- "ContabMovRowID" column: represents the row number of each accounting entry.

- "DATABASE" column: it is the name of the customer to whom that accounting entry refers. For each accounting entry the name is reported only in one line and in the others there is the value "nulll".

 

How do I ensure that if there is a customer name (for example Customer 1) in an accounting entry ("IDRegis") it is also reported in the other lines of that specific accounting entry (replacing value "null")?

 

 

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @Ferraz 

1. In Power Query, create a Duplicate table from Exisiting Table

2. Only keep IDRigis & ANAGRAFICA column
3. Remove null value from ANAGRAFICA column
4. Then Marge with 1st table with Duplicate Table with IDRigis (innerjoin)
5. Expand the ANAGRAICA column (new column name will created as ANAGRAICA_2)
5 Remove the main ANAGRAICA column and rename  ANAGRAICA_2 as ANAGRAICA


If solved your requirement, please mark this answer as SOLUTION.
If this comment helps you, appreciate your KUDOS

Thanks
Pijush

Do you like the theme, download it here https://community.fabric.microsoft.com/t5/Themes-Gallery/Retails-Sales-Analysis-BBG-BGV/td-p/3576304

PijushRoy_0-1702491243891.png

 









Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

1 REPLY 1
PijushRoy
Super User
Super User

Hi @Ferraz 

1. In Power Query, create a Duplicate table from Exisiting Table

2. Only keep IDRigis & ANAGRAFICA column
3. Remove null value from ANAGRAFICA column
4. Then Marge with 1st table with Duplicate Table with IDRigis (innerjoin)
5. Expand the ANAGRAICA column (new column name will created as ANAGRAICA_2)
5 Remove the main ANAGRAICA column and rename  ANAGRAICA_2 as ANAGRAICA


If solved your requirement, please mark this answer as SOLUTION.
If this comment helps you, appreciate your KUDOS

Thanks
Pijush

Do you like the theme, download it here https://community.fabric.microsoft.com/t5/Themes-Gallery/Retails-Sales-Analysis-BBG-BGV/td-p/3576304

PijushRoy_0-1702491243891.png

 









Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.