<?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: Measure to Group Data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/859314#M6921</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not work. It only returns AW19. Furthermore, I can only add this to values, I need it in Columns of my Matrix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Season = MAX([Last Invoice Date];IF(MONTH([Last Invoice Date])&amp;lt;7;"SS"&amp;amp;YEAR([Last Invoice Date]);"AW"&amp;amp;year([Last Invoice Date])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create below Matrix.&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;I do not know if it matters that Last Invoice Date is a measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2019 07:10:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-28T07:10:49Z</dc:date>
    <item>
      <title>Measure to Group Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/858596#M6897</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a Tabular live connection, and I need to group my stock value into Seasons.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it was imported data I would just add a column like below, but how do I get that to work in a measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(MONTH([Last Invoice Date])&amp;lt;7;"SS"&amp;amp;YEAR([Last Invoice Date]);"AW"&amp;amp;year([Last Invoice Date])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I would use this measure as columns in a Matrix.&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;&lt;P&gt;I hope it makes sense what I am asking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 14:53:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/858596#M6897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-27T14:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to Group Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/858620#M6900</link>
      <description>&lt;P&gt;You need to wrap an aggregation function around your columns like MAX, MIN, SUM, FIRSTNONBLANK, LASTNONBLANK, AVERAGE, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:09:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/858620#M6900</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2019-11-27T15:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to Group Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/859314#M6921</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not work. It only returns AW19. Furthermore, I can only add this to values, I need it in Columns of my Matrix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Season = MAX([Last Invoice Date];IF(MONTH([Last Invoice Date])&amp;lt;7;"SS"&amp;amp;YEAR([Last Invoice Date]);"AW"&amp;amp;year([Last Invoice Date])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create below Matrix.&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;I do not know if it matters that Last Invoice Date is a measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 07:10:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/859314#M6921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-28T07:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to Group Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/860054#M6943</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measures are only meant for values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your seasons are dimensions.&amp;nbsp; Assuming you have a Calendar Table, you need a column in there, that shows the Season that each day belongs to.&amp;nbsp; You can then use that column as a column in your Matrix.&amp;nbsp; &amp;nbsp;It would work in a similar way to having Quarters in your calendar.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 22:29:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/860054#M6943</guid>
      <dc:creator>nhoward</dc:creator>
      <dc:date>2019-11-28T22:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to Group Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/863663#M7017</link>
      <description>&lt;P&gt;Hi &lt;A title="" href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/127470" target="_self"&gt;&lt;SPAN class=""&gt;nhoward&lt;/SPAN&gt;&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is in a live connection so I cannot do that. I need it to be a measure, I cannot add tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it is just not possble.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 14:04:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/863663#M7017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-03T14:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to Group Data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/864114#M7023</link>
      <description>&lt;P&gt;I'm fairly sure that you can import from another source, even though most of your tables are live connections.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You do need a master calendar, if you need to group/summarise by periods.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 22:24:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-Group-Data/m-p/864114#M7023</guid>
      <dc:creator>nhoward</dc:creator>
      <dc:date>2019-12-03T22:24:32Z</dc:date>
    </item>
  </channel>
</rss>

