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
ktt777
Helper V
Helper V

Add multiple columns in power bi

when i load data into power bi, there are already 5 column named A,B,C,D,E.

What is the fast way to add multiple columns with names : F,G,H,K,L,M,N... with null value to the database.

I will change the value of the column later

 

thanks,

1 ACCEPTED SOLUTION
FarhanAhmed
Community Champion
Community Champion

Create a Table with 2 columns 

e.g.

-- ColumnName -----Value

Put the number of  Columnname in columnname field and keep values as null

FarhanAhmed_0-1655985330496.png

 

 

then go to advance editor 

Pivot this table

with "No Aggregate"

FarhanAhmed_1-1655985375059.png

 

you will get the result as single row with multiple column

FarhanAhmed_2-1655985390769.png

 

 

 

Now 2 ways

Go to DAX and create a cross join between 2 tables one is source other is new columntable

CROSSJOIN function (DAX) - DAX | Microsoft Docs

2nd 

Go to Power query and Add the column

in formula field put the name of table

Expand the table in and you will get multiple columns in quick way

 

Cross join - Power Query | Microsoft Docs

 







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

Proud to be a Super User!




View solution in original post

1 REPLY 1
FarhanAhmed
Community Champion
Community Champion

Create a Table with 2 columns 

e.g.

-- ColumnName -----Value

Put the number of  Columnname in columnname field and keep values as null

FarhanAhmed_0-1655985330496.png

 

 

then go to advance editor 

Pivot this table

with "No Aggregate"

FarhanAhmed_1-1655985375059.png

 

you will get the result as single row with multiple column

FarhanAhmed_2-1655985390769.png

 

 

 

Now 2 ways

Go to DAX and create a cross join between 2 tables one is source other is new columntable

CROSSJOIN function (DAX) - DAX | Microsoft Docs

2nd 

Go to Power query and Add the column

in formula field put the name of table

Expand the table in and you will get multiple columns in quick way

 

Cross join - Power Query | Microsoft Docs

 







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

Proud to be a Super User!




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.