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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jagostinhoCT
Post Partisan
Post Partisan

push file datasource info to binary content

Is there a way that I can push the creation date of a file I am using as a datasource to show as a column after I combine the file's binary data?

 

Thanks

J

 

Push date created to Binary Content.pngPush date created to Binary Content2.png

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @jagostinhoCT,

 

Please try the solution mentioned in below link to see whether it works in your scenario.

Create a date custom column by file date

 

Best regards,

Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yulgu-msft
Employee
Employee

Hi @jagostinhoCT,

 

Please try the solution mentioned in below link to see whether it works in your scenario.

Create a date custom column by file date

 

Best regards,

Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
Super User

IN edit queries under Transform thers is option calld "Fill" which can be used to fill down or up.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks @parry2k.

I could not find how to do it the way you mentioned. I found a workaround, however.

 

  1. Combine the Binaries column
  2. PBI will add new query steps automatically
  3. Delete all steps after the Invoke Custom Function one. But keep this one.
  4. There will now be a new column available, at the end of the datasource table, called “transform file from [DataSourceName][FileName]”
  5. Click the button to expand it and you will have both file metadata and combined binaries as different columns

 

Not entirely sure on the caveats for this but it seems to work. Any thoughts?

Joaquim

Transform file.png

 

 

 

 

 

 

hmmm...

I am getting an error....

 

I understand it might be due to the workaround described above.

You reckon it is fixable?

 

let
Source = AuditsLog,
#"Added Index" = Table.AddIndexColumn(Source, "Row Number" ,1),
#"Kept Errors" = Table.SelectRowsWithErrors(#"Added Index", {"Name", "Extension", "Date accessed", "Date modified", "Date created", "Folder Path", "RevitVersion", "SourceFilePath", "SourceFileName", "DetailLineCount", "FilledRegionCount", "MaskingRegionCount", "TextNoteCount", "SelectedElementCount", "SheetCount", "PurgeableGroupTypeCount", "FileLength", "ElementCount", "JobFolderName", "LiveFiles", "RecordFiles"}),
#"Reordered Columns" = Table.ReorderColumns(#"Kept Errors", {"Row Number", "Name", "Extension", "Date accessed", "Date modified", "Date created", "Folder Path", "RevitVersion", "SourceFilePath", "SourceFileName", "DetailLineCount", "FilledRegionCount", "MaskingRegionCount", "TextNoteCount", "SelectedElementCount", "SheetCount", "PurgeableGroupTypeCount", "FileLength", "ElementCount", "JobFolderName", "LiveFiles", "RecordFiles"})
in
#"Reordered Columns"

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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