<?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 Title Switcher in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3118701#M110501</link>
    <description>&lt;P&gt;No, If you have a look at the variable I defined, I used lookup value, then for example it lookup when the month name is March, then it gives you the month number column for that specefic selection, which is 3. It means that, this code will be sorted based on Month Number (numerical) not Month Name and will not be alphabetical.&lt;BR /&gt;&lt;BR /&gt;The second concat measure you created is fine. you just need to change the first one and use month number for sorting instead of month name.&lt;BR /&gt;&lt;BR /&gt;Hope it works for you.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 12:33:23 GMT</pubDate>
    <dc:creator>ShahabHoghooghi</dc:creator>
    <dc:date>2023-03-08T12:33:23Z</dc:date>
    <item>
      <title>Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3110408#M109841</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping to get help with a dynamic title of month and year, like so:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is currently made using the following two formulae:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;Title - Selection = &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;CONCATENATEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATE_DIM&lt;/SPAN&gt;&lt;SPAN&gt;[MNTH_NAME]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DATE_DIM&lt;/SPAN&gt;&lt;SPAN&gt;[MNTH_NAME]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;" &amp;amp; "&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DATE_DIM&lt;/SPAN&gt;&lt;SPAN&gt;[MNTH_NAME]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;and&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;Title = [Title - Selection] &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('DATE_DIM'[YR_NBR]) &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;" - Total Sales Bookings"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The problem arises when I begin to select multiple months like so:&lt;BR /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, the formula would be able to sort the selected value alphabetically when only two months are included, and also use [QTR_NBR] if 3 months in the one quarter were selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Mar 2023 13:46:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3110408#M109841</guid>
      <dc:creator>JLarkin</dc:creator>
      <dc:date>2023-03-03T13:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3110733#M109860</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try This Dax Code Instead:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Title - Selection =

VAR __MonthOrder = LOOKUPVALUE(DATE_DIM[MNTH_NUMBER], DATE_DIM[MNTH_NAME], SELECTEDVALUE(DATE_DIM[MNTH_NAME]))

RETURN

CONCATENATEX(
    VALUES(DATE_DIM[MNTH_NAME]),
    DATE_DIM[MNTH_NAME],
    " &amp;amp; ",
    __MonthOrder,
    ASC)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 15:37:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3110733#M109860</guid>
      <dc:creator>ShahabHoghooghi</dc:creator>
      <dc:date>2023-03-03T15:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3113413#M110120</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="423498" data-lia-user-login="ShahabHoghooghi" class="lia-mention lia-mention-user"&gt;ShahabHoghooghi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response but this is unfortunately not what I need. The ASC does not take into account the sort column I have on the months, and then does it by alphabetical order. I also require for the title to switch to using the column [QTR_NBR] when 3 months in the same QTR are selected:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, selecting the first two months should display "January &amp;amp; February - Total Sales..", and selecting the first three should display "Q1 - Total Sales.."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 09:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3113413#M110120</guid>
      <dc:creator>JLarkin</dc:creator>
      <dc:date>2023-03-06T09:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3118701#M110501</link>
      <description>&lt;P&gt;No, If you have a look at the variable I defined, I used lookup value, then for example it lookup when the month name is March, then it gives you the month number column for that specefic selection, which is 3. It means that, this code will be sorted based on Month Number (numerical) not Month Name and will not be alphabetical.&lt;BR /&gt;&lt;BR /&gt;The second concat measure you created is fine. you just need to change the first one and use month number for sorting instead of month name.&lt;BR /&gt;&lt;BR /&gt;Hope it works for you.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 12:33:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3118701#M110501</guid>
      <dc:creator>ShahabHoghooghi</dc:creator>
      <dc:date>2023-03-08T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3130586#M111373</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="423498" data-lia-user-login="ShahabHoghooghi" class="lia-mention lia-mention-user"&gt;ShahabHoghooghi&lt;/a&gt;.&amp;nbsp;&lt;BR /&gt;The textbox is using the [Title - Selection] variable you defined, and it still displays as Feb &amp;amp; Mar &amp;amp; Jan, instead of Jan &amp;amp; Feb &amp;amp; Mar.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 11:29:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3130586#M111373</guid>
      <dc:creator>JLarkin</dc:creator>
      <dc:date>2023-03-14T11:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3130624#M111379</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="457104" data-lia-user-login="JLarkin" class="lia-mention lia-mention-user"&gt;JLarkin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Title - Selection =
CONCATENATEX (
    VALUES ( DATE_DIM[MNTH_NAME] ),
    DATE_DIM[MNTH_NAME],
    " &amp;amp; ",
    CALCULATE ( MAX ( DATE_DIM[MNTH_NUMBER] ) ), ASC
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Title =
IF (
    COUNTROWS ( VALUES ( 'DATE_DIM'[MNTH_NAME] ) ) = 3
        &amp;amp;&amp;amp; COUNTROWS ( VALUES ( 'DATE_DIM'[QTR] ) ) = 1,
    MAX ( 'DATE_DIM'[QTR] ),
    [Title - Selection]
) &amp;amp; " "
    &amp;amp; SELECTEDVALUE ( 'DATE_DIM'[YR_NBR] ) &amp;amp; " - Total Sales Bookings"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 12:02:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3130624#M111379</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T12:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3130934#M111412</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="423498" data-lia-user-login="ShahabHoghooghi" class="lia-mention lia-mention-user"&gt;ShahabHoghooghi&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;Thank you very much to both of you!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 14:00:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3130934#M111412</guid>
      <dc:creator>JLarkin</dc:creator>
      <dc:date>2023-03-14T14:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3428353#M129958</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; i've been scratching my head on something similar for a while, this worked perfectly.&lt;BR /&gt;&lt;BR /&gt;How would i go about layering in YTD? For example, if April - August are selected then return "YTD"?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Matt.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 11:06:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3428353#M129958</guid>
      <dc:creator>mes0012</dc:creator>
      <dc:date>2023-09-13T11:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3429211#M129982</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616409" data-lia-user-login="mes0012" class="lia-mention lia-mention-user"&gt;mes0012&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please elaborate further on your requirements.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 17:56:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3429211#M129982</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-09-13T17:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3430439#M130035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;So i'm looking to build a dynamic title that breaks down as follows:&lt;/P&gt;&lt;P&gt;- If singular month selected it appears as below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;- If two months are selected it appears in a list as below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;- If the relevant 3 months are selected for the qtr then return the financial qtr as below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;All of the above works perfectly using your original solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bit i'm struggling with is layering in "YTD" if all months are selected. I currently have it structured as below when all months are selected. Instead of a list of the months selected i want it to return "YTD".&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hopefully this makes more sense!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 08:55:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3430439#M130035</guid>
      <dc:creator>mes0012</dc:creator>
      <dc:date>2023-09-14T08:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Title Switcher</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3430874#M130079</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="616409" data-lia-user-login="mes0012" class="lia-mention lia-mention-user"&gt;mes0012&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to wrap the formula with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF (&lt;/P&gt;
&lt;P&gt;ISFILTERED ( 'Table'[Month] ),&lt;/P&gt;
&lt;P&gt;'&lt;EM&gt;Original formula',&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;"YTD"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 11:49:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Title-Switcher/m-p/3430874#M130079</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-09-14T11:49:37Z</dc:date>
    </item>
  </channel>
</rss>

