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
Anonymous
Not applicable

File Name for direct file connection

I have a report that has multiple data sources one of which is a specific file in .csv format.  This file is out of Rapid 7 an export where i cannot get a data connection.  The report has all machines that has a specific vulnerability and the canned report does not have the vulnerability name in a column.  I save the file with the vulnerability  name and date(multiple files stored in this folder).  I would like to add a column to the dataset that has the filename.  I run this report for many vulnerabilities or different dates to track progress and I need the file name to show what I am working with.  I also do a similar report with a .xls file from SCCM report. Constantly switching the source file.

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Not very clear to me, refer if this can help

https://www.sqlservercentral.com/blogs/include-file-name-in-content-using-power-query

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I tried the link but the images are not coming up for me.  Sorry it its not real clear basically i manually change a .csv connection to different files.  I would like a way to show what file that data connection is connected too.  

Hi @Anonymous ,

 

Are you trying to add a new column for filename in your dataset? Please refer to the similar post: https://community.powerbi.com/t5/Desktop/Retain-file-name-column-when-using-Folder-as-a-data-source-Power/td-p/22851 and the video: https://www.youtube.com/watch?v=whu1CsoZn1Q&feature=youtu.be

 

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

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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