<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get datepart in Expressions in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4619206#M8119</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/791336"&gt;@CeeVee33&lt;/a&gt;&amp;nbsp;, Thanks for the response. Happy to wait.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2025 05:54:05 GMT</pubDate>
    <dc:creator>v-hashadapu</dc:creator>
    <dc:date>2025-03-21T05:54:05Z</dc:date>
    <item>
      <title>How to get datepart in Expressions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4617514#M8076</link>
      <description>&lt;P&gt;Hi Experts - I want to source out the date, month and year part of today's&amp;nbsp;date. How can I achieve it while creating a dynamic content for my csv folder path and filename?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CSVs are saved in&amp;nbsp;&lt;/P&gt;&lt;P&gt;\\Servername\ABCFolder\2025\JANUARY\02.01.2025\MyFirstFav_02012025.csv&lt;/P&gt;&lt;P&gt;\\Servername\ABCFolder\2025\JANUARY\02.01.2025\MySecondFav_02012025.csv&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They all have same structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I intend to create a pipeline to ingest them initially,once off load, and then daily. For daily, it needs to keep changing the filename based on date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if there is a tutorial to ingest multiple files into a table using data pipeline, please let me know. I could find tutorial on direct upload to Lakehouse, or a pipeline upload to lakehouse as files, and not table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 04:54:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4617514#M8076</guid>
      <dc:creator>CeeVee33</dc:creator>
      <dc:date>2025-03-20T04:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get datepart in Expressions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4618244#M8096</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/791336"&gt;@CeeVee33&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;To dynamically create the folder path and filenames based on today's date in Microsoft Fabric Pipelines, you can use the following expressions directly in the pipeline.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Folder path: @concat('\\Servername\ABCFolder\',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formatDateTime(utcNow(), 'yyyy'), '\\',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formatDateTime(utcNow(), 'MMMM').ToUpper(), '\\',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; formatDateTime(utcNow(), 'dd.MM.yyyy'))&lt;/P&gt;
&lt;P&gt;Output: \\Servername\ABCFolder\2025\MARCH\20.03.2025&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Example File1: @concat('MyFirstFav_', formatDateTime(utcNow(), 'ddMMyyyy'), &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'.csv')&lt;/P&gt;
&lt;P&gt;Output: MyFirstFav_20032025.csv&lt;/P&gt;
&lt;P&gt;Example File2: @concat('MySecondFav_', formatDateTime(utcNow(), 'ddMMyyyy'), '.csv')&lt;/P&gt;
&lt;P&gt;Output: MySecondFav_20032025.csv&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;To Ingest Multiple CSVs into a Table in Fabric, create a Pipeline, use a Get Metadata activity to list the files in the dynamic folder path. Use a ForEach Activity, Iterate over the file list. Copy Data into a Table, Use a wildcard file path: \\Servername\ABCFolder\@{formatDateTime(utcNow(), 'yyyy')}\@{formatDateTime(utcNow(), 'MMMM').ToUpper()}\@{formatDateTime(utcNow(), 'dd.MM.yyyy')}\*.csv . Configure the Sink, point to your Lakehouse table, Use Auto Mapping to map CSV columns to table columns. Add a Trigger, set the pipeline to run daily.&lt;/LI&gt;
&lt;LI&gt;Try these learn documents:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/tutorial-end-to-end-pipeline" target="_blank"&gt;Module 1: Create a pipeline with Data Factory&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/tutorial-lakehouse-data-ingestion" target="_blank"&gt;Lakehouse tutorial: Ingest data into the lakehouse&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/ingest-data-pipelines" target="_blank"&gt;Ingest data into your Warehouse using data pipelines&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this helped solve the issue, please consider marking it&amp;nbsp;&lt;STRONG&gt;'Accept as Solution&lt;/STRONG&gt;' so others with similar queries may find it more easily. If not, please share the details, always happy to help.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 13:08:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4618244#M8096</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-03-20T13:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get datepart in Expressions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4619162#M8117</link>
      <description>&lt;P&gt;That is very detailed explanation,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882992"&gt;@v-hashadapu&lt;/a&gt;&amp;nbsp;. I really appreciate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have few other unplanned things to execute today, but I will get to your solution on Monday and come back to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 05:16:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4619162#M8117</guid>
      <dc:creator>CeeVee33</dc:creator>
      <dc:date>2025-03-21T05:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get datepart in Expressions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4619206#M8119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/791336"&gt;@CeeVee33&lt;/a&gt;&amp;nbsp;, Thanks for the response. Happy to wait.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 05:54:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4619206#M8119</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-03-21T05:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get datepart in Expressions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4627512#M8258</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/791336"&gt;@CeeVee33&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;Please let us know if your issue is solved. If it is, consider marking the answers that helped&amp;nbsp;&lt;STRONG&gt;'Accept as Solution'&lt;/STRONG&gt;, so others with similar queries can find them easily. If not, please share the details.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 12:16:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4627512#M8258</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-03-27T12:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get datepart in Expressions</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4628319#M8269</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/882992"&gt;@v-hashadapu&lt;/a&gt;&amp;nbsp;- thank you very much for following up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, your suggestions worked like a charm. Very smoothly I got the files loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 22:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-get-datepart-in-Expressions/m-p/4628319#M8269</guid>
      <dc:creator>CeeVee33</dc:creator>
      <dc:date>2025-03-27T22:12:26Z</dc:date>
    </item>
  </channel>
</rss>

