<?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: Adding description to time measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-description-to-time-measure/m-p/2966547#M99069</link>
    <description>&lt;P&gt;Yes but I don't believe it would ever be recommended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula you have utilises data type Date or Date/Time. This maintains chronological settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could create a custom column using the following code:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WeekOf = &lt;/SPAN&gt;&lt;SPAN&gt;"Week Of "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[WeekEnding]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"mm/dd"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This introduces a host of issues though relating to data control due to a change in data types. To put "week of" into a column means your data type changes to Text. You will lose chronological control and your columns will be shown alphabetically (or alphanumerically based on the digit assignment). The only real way to control this would then be to create a separate table that has a ranking column next to it so you could list them in the order you want to.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If this is due to user preference then education/expectations management is key.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 13 Dec 2022 23:19:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-13T23:19:47Z</dc:date>
    <item>
      <title>Adding description to time measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-description-to-time-measure/m-p/2966535#M99034</link>
      <description>&lt;P&gt;Hi Guys&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set a weekending measure to&amp;nbsp;&lt;SPAN&gt;show the week starting date vs. the week ending date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&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 X-axis, is there a way I can change the display from showing "November 20" to " Week of 11/20"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 22:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-description-to-time-measure/m-p/2966535#M99034</guid>
      <dc:creator>njxfoster</dc:creator>
      <dc:date>2022-12-13T22:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding description to time measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-description-to-time-measure/m-p/2966534#M99068</link>
      <description>&lt;P&gt;Hi Guys&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set a weekending measure to&amp;nbsp;&lt;SPAN&gt;show the week starting date vs. the week ending date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&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 X-axis, is there a way I can change the display from showing "November 20" to " Week of 11/20"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 22:59:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-description-to-time-measure/m-p/2966534#M99068</guid>
      <dc:creator>njxfoster</dc:creator>
      <dc:date>2022-12-13T22:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding description to time measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-description-to-time-measure/m-p/2966547#M99069</link>
      <description>&lt;P&gt;Yes but I don't believe it would ever be recommended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula you have utilises data type Date or Date/Time. This maintains chronological settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could create a custom column using the following code:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WeekOf = &lt;/SPAN&gt;&lt;SPAN&gt;"Week Of "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[WeekEnding]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"mm/dd"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This introduces a host of issues though relating to data control due to a change in data types. To put "week of" into a column means your data type changes to Text. You will lose chronological control and your columns will be shown alphabetically (or alphanumerically based on the digit assignment). The only real way to control this would then be to create a separate table that has a ranking column next to it so you could list them in the order you want to.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If this is due to user preference then education/expectations management is key.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Dec 2022 23:19:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-description-to-time-measure/m-p/2966547#M99069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-13T23:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding description to time measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-description-to-time-measure/m-p/2966715#M99038</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="352970" data-lia-user-login="njxfoster" class="lia-mention lia-mention-user"&gt;njxfoster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Week = WEEKNUM('Table'[Date],2)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;mindate =
var _weeknum=WEEKNUM('Table'[Date],2)
var _weekday=WEEKDAY('Table'[Date],2)
return
MINX(FILTER(ALL('Table'),'Table'[Week]=EARLIER('Table'[Week])),[Date])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Flag = "Week of" &amp;amp;" "&amp;amp; MONTH('Table'[mindate])&amp;amp;"/"&amp;amp;DAY('Table'[mindate])&lt;/LI-CODE&gt;
&lt;P&gt;2. Add Column – Index Column – From 1.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table2 =
SUMMARIZE('Table','Table'[Flag],"Index",MINX(FILTER(ALL('Table'),'Table'[Flag]=EARLIER('Table'[Flag])),[Index]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;4. Join the relationship between two tables.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;5. Column[Flag] – Column tools – Sort by column -- [Index] .&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;6. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 01:38:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-description-to-time-measure/m-p/2966715#M99038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-14T01:38:43Z</dc:date>
    </item>
  </channel>
</rss>

