<?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: Date mismatches in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373746#M61029</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338679" data-lia-user-login="Karolina411" class="lia-mention lia-mention-user"&gt;Karolina411&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the solution in this link, add a new column and sort the Month column using the new column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/not-able-to-sort-by-months-in-chronological-order/m-p/61035" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/not-able-to-sort-by-months-in-chronological-order/m-p/61035&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 23:19:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-03T23:19:00Z</dc:date>
    <item>
      <title>Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373734#M61027</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;So...my date column in my date dimension is not working all of a sudden----I tried to ensure both are dates only but that is not working - when I use MONTHDATE (as below) it cannot get into date order.&amp;nbsp; Surely this is silly .....any suggestions ??&amp;nbsp; I just need a simple solution on how to display month/year by the month name/yr and suddently my date table seems to be a string value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:07:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373734#M61027</guid>
      <dc:creator>Karolina411</dc:creator>
      <dc:date>2022-03-03T23:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373743#M61028</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338679" data-lia-user-login="Karolina411" class="lia-mention lia-mention-user"&gt;Karolina411&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add a calculated column based on your date to show the YYYYMM like 202101=Jan-21&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then create another column to show the MMMM YY like January 2021, and sort it by the previous ↑ calculated column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can use it in your report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:18:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373743#M61028</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-03-03T23:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373746#M61029</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338679" data-lia-user-login="Karolina411" class="lia-mention lia-mention-user"&gt;Karolina411&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the solution in this link, add a new column and sort the Month column using the new column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/not-able-to-sort-by-months-in-chronological-order/m-p/61035" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/not-able-to-sort-by-months-in-chronological-order/m-p/61035&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:19:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373746#M61029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-03T23:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373763#M61030</link>
      <description>&lt;P&gt;I can hardly understand how he wrote those complex instructions....how can there be&amp;nbsp; a program that does not sort dates in chronological order?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373763#M61030</guid>
      <dc:creator>Karolina411</dc:creator>
      <dc:date>2022-03-03T23:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373773#M61032</link>
      <description>&lt;P&gt;Right Click "DIMDATE", Add a new column, and type in the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;yearMonth = &lt;/SPAN&gt;&lt;SPAN&gt;RIGHT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'DIMDATE'[DateValue]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'DIMDATE'[DateValue]&lt;/SPAN&gt;&lt;SPA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;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;9&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"09"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"10"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;11&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"11"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"12"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then Left Click the "FormattedMonthYear" under "DIMDATE" and sort the column by "yearMonth"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 23:41:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373773#M61032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-03T23:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373794#M61035</link>
      <description>&lt;P&gt;Thank you ..I will try this later today...appreciate the clarity&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 00:16:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373794#M61035</guid>
      <dc:creator>Karolina411</dc:creator>
      <dc:date>2022-03-04T00:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373797#M61036</link>
      <description>&lt;P&gt;No problem, I'm new to Power BI as well and I faced the same problem a few days ago. That was the way I solved it. Hope it can solve yours as well&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 00:21:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2373797#M61036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T00:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2374114#M61057</link>
      <description>&lt;P&gt;I would not say I am a total neophyte but how can a Microsoft write such a software that cannot interpret chronological dates..I guess that is life!&lt;/P&gt;&lt;P&gt;thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 05:48:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2374114#M61057</guid>
      <dc:creator>Karolina411</dc:creator>
      <dc:date>2022-03-04T05:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2374156#M61059</link>
      <description>&lt;P&gt;I think it is because when you format the Date into string, it will not see it as a Date anymore so it sort the Formatted Date according to the ASCII code from A to Z&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 06:02:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2374156#M61059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T06:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2375903#M61189</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;I know...it happens sometimes w/ my Date Dimensions out of nowhere....I suspect it is my relationships running in the bg.&amp;nbsp; I got your code to work!&amp;nbsp; thank you as you save me alot of frustration!&amp;nbsp;&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;</description>
      <pubDate>Fri, 04 Mar 2022 22:44:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2375903#M61189</guid>
      <dc:creator>Karolina411</dc:creator>
      <dc:date>2022-03-04T22:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2376431#M61223</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;CALC COL for Date Table. This will allow the sorting you want but also is very helpful when you are trying to zone in on particular months, or groups of months. Lot's of applications!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running Month Index =&lt;/P&gt;&lt;P&gt;VAR minyear = YEAR(MIN(Dates[Date]))&lt;/P&gt;&lt;P&gt;VAR thisyear = YEAR(Dates[Date])&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;(thisyear - minyear) * 12 + MONTH(Dates[Date])&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 14:19:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2376431#M61223</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-05T14:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2376519#M61233</link>
      <description>&lt;P&gt;thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 17:44:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2376519#M61233</guid>
      <dc:creator>Karolina411</dc:creator>
      <dc:date>2022-03-05T17:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date mismatches</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2376605#M61247</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Can you please mark as solution? Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 21:07:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-mismatches/m-p/2376605#M61247</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-05T21:07:14Z</dc:date>
    </item>
  </channel>
</rss>

