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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
kressb
Helper V
Helper V

Adding a Row to a Created Table?

Hello,

I created a Table in PowerBI Desktop:

kressb_0-1626203626346.png

Table =
Filter(
Summarize(ExistingTable, ExistingTable[UniqueID1], ExistingTable[UniqueID1], ExistingTable[Name], ExistingTable[Number1], ExistingTable[Number2], Rollforward[Number3], ExistingTable[Number4], ExistingTable[Number5],ExistingTable[Notes], ExistingTable[Site], "StartDate", Min(ExistingTable[Start Date])),
CONTAINSSTRING(ExistingTable[Notes],"Abc"))
 
Now I need to add a Row that's outside the "ExistingTable"
Is there a way to add code to do this?
1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @kressb ,

 

you can append more rows/tables with UNION.

https://dax.guide/union/

 

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

7 REPLIES 7
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @kressb ,

 

you can append more rows/tables with UNION.

https://dax.guide/union/

 

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


@mwegener 

Yes, but I don't have any table to UNION them from.

IE the data exists only in my head and I want to enter it into the table

You could use the Enter data button to create a new table with the data in your head or else define it as a DATATABLE with DAX.

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @kressb ,

 

then you must create the table in the same structure with DATATABLE

https://docs.microsoft.com/en-us/dax/datatable-function

 

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


@AlexisOlson @mwegener 
Ok, so selected enter data, created another table with my manual data - used all the same columns in the exact same order and formated them all correctly.

went back to the original table I created. called that one var _Table1 and then set a Union:

Table =
var _Table1 = Filter(
Summarize(ExistingTable, ExistingTable[UniqueID1], ExistingTable[UniqueID1], ExistingTable[Name], ExistingTable[Number1], ExistingTable[Number2], Rollforward[Number3], ExistingTable[Number4], ExistingTable[Number5],ExistingTable[Notes], ExistingTable[Site], "StartDate", Min(ExistingTable[Start Date])),
CONTAINSSTRING(ExistingTable[Notes],"Abc"))
Return
Union (_Table1,SecondNewTable)
 
Columns between the 2 tables are not matching up.. why?

Update: read this thread: Union column order - Microsoft Power BI Community

Had to add a nested Summarize to the Second New Table to get it to work.. 

Seems like a lot more work than it should be...

Your second table needs to match the columns of the table you are unioning it with, not the original shape of the table you are summarizing. Having [UniqueID1] twice in your summary might make this problematic.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors