<?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: Dynamic name in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4409967#M175129</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="771313" data-lia-user-login="homelander123" class="lia-mention lia-mention-user"&gt;homelander123&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope your Question is to show the title dynamically when a slicer selection is made,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Measure =
VAR SelectedMonth = MAX(Query1[SetupDate])
VAR LastYearSameMonthStart = EOMONTH(SelectedMonth, -13) + 1
RETURN 
FORMAT(LastYearSameMonthStart,"MMM") &amp;amp; " " YEAR(LastYearSameMonthStart)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Use this Measure as function in visual title.&amp;nbsp;&lt;BR /&gt;If this is not what your looking for, please elobrate your ask.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Punith&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 01:33:11 GMT</pubDate>
    <dc:creator>Punithurs</dc:creator>
    <dc:date>2025-02-14T01:33:11Z</dc:date>
    <item>
      <title>Dynamic name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4409875#M175125</link>
      <description>&lt;P&gt;CurrentMonthLastYearCount =&lt;BR /&gt;VAR SelectedMonth = MAX(Query1[SetupDate])&lt;BR /&gt;VAR LastYearSameMonthStart = EOMONTH(SelectedMonth, -13) + 1&lt;BR /&gt;VAR LastYearSameMonthEnd = EOMONTH(SelectedMonth, -12)&lt;BR /&gt;VAR Result = CALCULATE( SUM(Query1[NewCount]), Query1[SetupDate] &amp;gt;= LastYearSameMonthStart &amp;amp;&amp;amp; Query1[SetupDate] &amp;lt;= LastYearSameMonthEnd )&lt;BR /&gt;RETURN&lt;BR /&gt;Result&lt;BR /&gt;&lt;BR /&gt;I am using this DAX however i want the name to be dynamic based on slicer selection.&amp;nbsp;&lt;BR /&gt;E.g. if i select feb 2025, it should show feb 2024.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 22:37:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4409875#M175125</guid>
      <dc:creator>homelander123</dc:creator>
      <dc:date>2025-02-13T22:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4409967#M175129</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="771313" data-lia-user-login="homelander123" class="lia-mention lia-mention-user"&gt;homelander123&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope your Question is to show the title dynamically when a slicer selection is made,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Measure =
VAR SelectedMonth = MAX(Query1[SetupDate])
VAR LastYearSameMonthStart = EOMONTH(SelectedMonth, -13) + 1
RETURN 
FORMAT(LastYearSameMonthStart,"MMM") &amp;amp; " " YEAR(LastYearSameMonthStart)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Use this Measure as function in visual title.&amp;nbsp;&lt;BR /&gt;If this is not what your looking for, please elobrate your ask.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Punith&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 01:33:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4409967#M175129</guid>
      <dc:creator>Punithurs</dc:creator>
      <dc:date>2025-02-14T01:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4410074#M175140</link>
      <description>&lt;P&gt;That's a lot of code.&amp;nbsp; Have you considered using SAMEPERIODLASTYEAR&amp;nbsp; instead?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 02:36:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4410074#M175140</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-14T02:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4410157#M175144</link>
      <description>&lt;P&gt;I would want that since its not just that. i want it to show for other measures as well. What would be the code?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 03:46:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4410157#M175144</guid>
      <dc:creator>homelander123</dc:creator>
      <dc:date>2025-02-14T03:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4411007#M175178</link>
      <description>&lt;P&gt;FORMAT(EDATE(DATES[DATE],-12),"MMM YYYY")&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 11:41:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4411007#M175178</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-14T11:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4411248#M175190</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="588973" data-lia-user-login="Punithurs" class="lia-mention lia-mention-user"&gt;Punithurs&lt;/a&gt;&amp;nbsp;It says syntax incorrect&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 14:21:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4411248#M175190</guid>
      <dc:creator>homelander123</dc:creator>
      <dc:date>2025-02-14T14:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4411294#M175193</link>
      <description>&lt;LI-CODE lang="markup"&gt;CurrentMonthLastYearCount =
CALCULATE( SUM(Query1[NewCount]), SAMEPERIODLASTYEAR(Dates[Date]))&lt;/LI-CODE&gt;
&lt;P&gt;This assumes that you have a proper calendar table "Dates"&amp;nbsp; is your data model.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 14:52:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4411294#M175193</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-14T14:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4415336#M175332</link>
      <description>&lt;P&gt;Your solution is so great&amp;nbsp;Punithurs&amp;nbsp;and&amp;nbsp;lbendlin&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="771313" data-lia-user-login="homelander123" class="lia-mention lia-mention-user"&gt;homelander123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think you can refer to this blog post from the community below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Power-BI-Community-Blog/Dynamic-titles-in-Power-BI/ba-p/3570497" target="_blank"&gt;Dynamic titles in Power BI - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Jianpeng &lt;/SPAN&gt;&lt;SPAN&gt;Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 08:18:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-name/m-p/4415336#M175332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-18T08:18:08Z</dc:date>
    </item>
  </channel>
</rss>

