<?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: Group Range of Date and Return a Label in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112124#M109995</link>
    <description>&lt;P&gt;Hello Tamer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your reply. What if the date is specific? (not limited only to the month)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example 3 Jan 23 to 16 Feb 23 is "A", 17 Feb 23 to 21 Mar 23 is "B"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Sun, 05 Mar 2023 09:28:41 GMT</pubDate>
    <dc:creator>aglpr</dc:creator>
    <dc:date>2023-03-05T09:28:41Z</dc:date>
    <item>
      <title>Group Range of Date and Return a Label</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112122#M109993</link>
      <description>&lt;P&gt;Hello colleague,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for this stupid-but-simple question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I group the date range using DAX and return a value label?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example : Range date of 1 Jan 2023 to 31 Jan 2023 will be labeled "A". Range date of 1 Feb 23 to 28 Feb 23 will be labeled "B", etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have the date table in my dataset btw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 09:05:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112122#M109993</guid>
      <dc:creator>aglpr</dc:creator>
      <dc:date>2023-03-05T09:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Group Range of Date and Return a Label</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112123#M109994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366577" data-lia-user-login="aglpr" class="lia-mention lia-mention-user"&gt;aglpr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can create a calculated column the date table using switch statement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SWITCH (&lt;/P&gt;
&lt;P&gt;MONTH ( 'Date'[Date] ),&lt;/P&gt;
&lt;P&gt;1, "A",&lt;/P&gt;
&lt;P&gt;2, "B",&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;or perhaps you need to do that for Year-Month?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 09:22:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112123#M109994</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-05T09:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Group Range of Date and Return a Label</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112124#M109995</link>
      <description>&lt;P&gt;Hello Tamer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your reply. What if the date is specific? (not limited only to the month)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example 3 Jan 23 to 16 Feb 23 is "A", 17 Feb 23 to 21 Mar 23 is "B"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 09:28:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112124#M109995</guid>
      <dc:creator>aglpr</dc:creator>
      <dc:date>2023-03-05T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Group Range of Date and Return a Label</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112127#M109996</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366577" data-lia-user-login="aglpr" class="lia-mention lia-mention-user"&gt;aglpr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it should be hard coded like&lt;/P&gt;
&lt;P&gt;SWITCH (&lt;/P&gt;
&lt;P&gt;TRUE ( ),&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'Date'[Date] IN CALENDAR ( DATE ( 2023, 01, 03 ), DATE ( 2024, 01, 23 ) )&lt;/SPAN&gt;, "A",&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 09:46:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112127#M109996</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-05T09:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Group Range of Date and Return a Label</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112131#M109997</link>
      <description>&lt;P&gt;Many thanks Tamer! It works now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 09:56:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-Range-of-Date-and-Return-a-Label/m-p/3112131#M109997</guid>
      <dc:creator>aglpr</dc:creator>
      <dc:date>2023-03-05T09:56:34Z</dc:date>
    </item>
  </channel>
</rss>

