<?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: Create measure to display string from file name used in a query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3426230#M129816</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="613640" data-lia-user-login="isjoycewang" class="lia-mention lia-mention-user"&gt;isjoycewang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the replay.&lt;/P&gt;&lt;P&gt;Currently I have implemented the above solution with a card, but I'm looking a more "straightforward" since all the data in the Power BI project querys from that file and I replace it in an weekly base.&lt;/P&gt;&lt;P&gt;After I change the source file of the query the date in the card or other visual element I need the value to be aotomatic updated.&lt;/P&gt;&lt;P&gt;And I'm looking to it with a function that concatenates a text similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;updatedate = concat("last update: "; &amp;lt;string in file&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Julio Almeida&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 11:35:29 GMT</pubDate>
    <dc:creator>JulioAlmeida</dc:creator>
    <dc:date>2023-09-12T11:35:29Z</dc:date>
    <item>
      <title>Create measure to display string from file name used in a query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3425813#M129753</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make a automated/dynamic way to display the date of data using the file name.&lt;/P&gt;&lt;P&gt;Someting like this:&lt;/P&gt;&lt;P&gt;file name:&amp;nbsp;&lt;EM&gt;BI_Execucao_Detalhada_Semanal_&lt;STRONG&gt;08.09.2023&lt;/STRONG&gt;_.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and display the message/tex:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;FONT color="#FF9900"&gt;last update: september 8&lt;/FONT&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Júlio Almeida&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 08:08:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3425813#M129753</guid>
      <dc:creator>JulioAlmeida</dc:creator>
      <dc:date>2023-09-12T08:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create measure to display string from file name used in a query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3425899#M129763</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="605846" data-lia-user-login="JulioAlmeida" class="lia-mention lia-mention-user"&gt;JulioAlmeida&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think below post explains clearly how to extract file name in the Power Query editor. Hope this helps!&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Power-Query/Get-current-file-name-within-PowerQuery-Editor/td-p/1933289" target="_blank"&gt;Solved: Get current file name within PowerQuery Editor - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 09:00:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3425899#M129763</guid>
      <dc:creator>isjoycewang</dc:creator>
      <dc:date>2023-09-12T09:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create measure to display string from file name used in a query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3426230#M129816</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="613640" data-lia-user-login="isjoycewang" class="lia-mention lia-mention-user"&gt;isjoycewang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the replay.&lt;/P&gt;&lt;P&gt;Currently I have implemented the above solution with a card, but I'm looking a more "straightforward" since all the data in the Power BI project querys from that file and I replace it in an weekly base.&lt;/P&gt;&lt;P&gt;After I change the source file of the query the date in the card or other visual element I need the value to be aotomatic updated.&lt;/P&gt;&lt;P&gt;And I'm looking to it with a function that concatenates a text similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;updatedate = concat("last update: "; &amp;lt;string in file&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Julio Almeida&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 11:35:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3426230#M129816</guid>
      <dc:creator>JulioAlmeida</dc:creator>
      <dc:date>2023-09-12T11:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create measure to display string from file name used in a query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3427451#M129897</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="605846" data-lia-user-login="JulioAlmeida" class="lia-mention lia-mention-user"&gt;JulioAlmeida&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible for you to filter the latest file using the date (or date in your file name) in the Power Query editor? This should always produce the latest one without manually update.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, I think that adding a cell in excel file might be simpler.&lt;BR /&gt;Discussion for reference:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Power-Query/get-current-file-name/td-p/2944196" target="_blank" rel="noopener"&gt;Solved: get current file name - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= CELL("filename")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 02:37:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3427451#M129897</guid>
      <dc:creator>isjoycewang</dc:creator>
      <dc:date>2023-09-13T02:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create measure to display string from file name used in a query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3497337#M134001</link>
      <description>&lt;P&gt;Is there a way to do this - to grab the filename of the source of the table - and store that filename as eaither a Measure (preferred) or calculated column?&lt;BR /&gt;-----&amp;gt;&amp;gt;&amp;nbsp;WITHOUT using a folder import or some solution that involves Sharepoint?&amp;nbsp; &amp;lt;&amp;lt;-----&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 20:22:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-to-display-string-from-file-name-used-in-a-query/m-p/3497337#M134001</guid>
      <dc:creator>comish4lif2</dc:creator>
      <dc:date>2023-10-25T20:22:37Z</dc:date>
    </item>
  </channel>
</rss>

