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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sdhn
Responsive Resident
Responsive Resident

Added column with values to existing file

Hi All,

 

I imported multiple csv files to one of my  Power Bi report.

I want to add one custom column with same values for each rows in each file.

 

New custom column name in all files is "Name".  

 

 

Value for File 1 is "OBDT"

Value for File 2 is "JPON"  

etc.    

 

Please advise.  Thanks

3 REPLIES 3
TheoC
Super User
Super User

Hi @sdhn 

 

For File 1, if you click on Custom Column in Power Query, you can then type "OBDT" and click okay. That will give you the column you are after. Do the same for File 2 and replace with "JPON".

TheoC_0-1644310868960.png

 

 

All the best 🙂

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

v-chenwuz-msft
Community Support
Community Support

Hi @sdhn ,

 

Maybe you can try get data from folder.

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-combine-binaries 

 

This will allow you to combine multiple files into one, after which you can add a custom column by file name (the file name will be preserved when combining).

vchenwuzmsft_0-1644307813805.png

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

TheoC
Super User
Super User

Hi @sdhn 

 

For File 1, if you click on Custom Column in Power Query, you can then type "OBDT" and click okay. That will give you the column you are after. Do the same for File 2 and replace with "JPON".

TheoC_0-1643849025417.png

 

All the best 🙂

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors
Users online (5,748)