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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How to add a blank row in a table?

Hello

 

I load a table from a source and I want whenever the table is loaded, an empty row to be added with all the respective fields.

 

What is the best way to do that?

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a new table like 

Table = SELECTCOLUMNS(Sheet1,"id",BLANK(),"value",BLANK())

1.PNG2.PNG 

Then union raw table an new table.

Table 2 = UNION('Table',Sheet1)

3.PNG 

Once refresh the table, blank row will be added.

 

Best Regards,

Jay

View solution in original post

8 REPLIES 8
Greg_Deckler
Super User
Super User

@Anonymous You can create a table with a blank Row and append it in either Power Query or DAX (DAX is Union). Power Query would be an Append query. However, if you are thinking that this will separate data refreshes that is not the case. Power BI will reload all of the data and you will get a single blank row at the bottom, for example.

 

What is the purpose of the blank row?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler  thanks

 

I created and appended the table below:

Column1

[]

 

The Column1 is the same as the name of a column of the table where I want to add the blank row.

The [] means there is no value.

 

However, it did not work. It did not create a blank row. Please note I do not want to create a blank table with all the column fields because the column fields may change so it will not be sustainable.

 

Is there any other way? How can I do it with DAX?

 

The purpose of the empty row is to add the (blank) entry into slicers so that the blank entries that come from non matches of table joins will be filtered.

 

Thanks!

@Anonymous , in Dax you have Row, where you can create a row and then use union and merge it

 

example

Table with Others = UNION(
ROW("ProductCode_wOthers", 0, "Item_wOthers", "0"),
ALLNOBLANKROW('Table','Table'[ProductCode], 'Table'[Item])
)

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@Anonymous , Create a table with the empty row and append with it.

Or you can one table with a column all together different column's name existing, when you will append this will append a new column at end and all other columns will have null values

 

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  sorry I do not understand what you are saying, it seems there are words missing from your message and I cannot understand it. What should be the format of the table to append please?

@Anonymous - Try this:

New Table = 
  UNION(
    'Old Table',
    { ( BLANK(),BLANK(),BLANK(),BLANK(),BLANK(),BLANK() ) }
  )

The number of blanks should be equal to the number of columns that you have. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler @amitchandak 

 

Thanks but that will not work because the number and name of the columns will not stay the same.

 

Is it possible to do it with Power Query?

 

Something along the:

Table.InsertRows(#"Replaced Value", 0,{Column1=""}) 

But it should work regardless the columns.

 

Thanks

Anonymous
Not applicable

Hi @Anonymous ,

 

Create a new table like 

Table = SELECTCOLUMNS(Sheet1,"id",BLANK(),"value",BLANK())

1.PNG2.PNG 

Then union raw table an new table.

Table 2 = UNION('Table',Sheet1)

3.PNG 

Once refresh the table, blank row will be added.

 

Best Regards,

Jay

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.