<?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: Grouping multiple FY's in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234320#M118818</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399872" data-lia-user-login="Tob_P" class="lia-mention lia-mention-user"&gt;Tob_P&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case the only solution is to have the group column in a disconnected two columns independent table that contains 3 rows of each group name, a column for the group name (Groups[Group]) and a column for the fiscal year (Groups[FY]). Then you can create a visual level filter measure which you need to place in the filter pane of the visual, select "is not blank" then apply the filter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FilterMeasure =&lt;BR /&gt;IF (&lt;BR /&gt;HASONEVALUE ( Groups[Group] ),&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER ( 'Table', 'Table'[Financial Year (SHM)] IN VALUES ( Groups[FY] ) )&lt;BR /&gt;),&lt;BR /&gt;1&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 14 May 2023 16:01:14 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-05-14T16:01:14Z</dc:date>
    <item>
      <title>Grouping multiple FY's</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234283#M118808</link>
      <description>&lt;P&gt;Having abrainmelt this Sunday - I've done something similar before but completely forgotten how to do it. I want to group Financial Years together, essentially the last 3 FY's and 3 other years which I'm classing as Non Covid years - can't use groups, as one of the FY's is in both categories. FY column is text&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;How can I get a calculated column that gives me the option to use in a slicer, that groups full financial years 20/21, 21/22 &amp;amp; 22/33 as "Last 3 years" and groups 18/19, 19/20 &amp;amp; 22/23 as "Non Covid"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 13:38:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234283#M118808</guid>
      <dc:creator>Tob_P</dc:creator>
      <dc:date>2023-05-14T13:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple FY's</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234311#M118814</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399872" data-lia-user-login="Tob_P" class="lia-mention lia-mention-user"&gt;Tob_P&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to add a calculated column&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Group =&lt;BR /&gt;IF (&lt;BR /&gt;'Table'[Financial Year (SHM)]&lt;BR /&gt;IN { "FY 2020/2021", "FY 2021/2022", "FY 2022/2023" },&lt;BR /&gt;"Last 3 Years",&lt;BR /&gt;"Non Covid"&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 15:28:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234311#M118814</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-14T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple FY's</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234314#M118815</link>
      <description>&lt;P&gt;Hi &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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had something similar, but that won't work as 2022/2023 falls under both Last 3 years and Non Covid - with your suggestion, that will default to last 3 years - I don't even think it's possible for a calculated column to output two different scenarios. Really struggling to think of a solution for this, although on paper, it seems a fairly straightforward scenario.&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 15:36:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234314#M118815</guid>
      <dc:creator>Tob_P</dc:creator>
      <dc:date>2023-05-14T15:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple FY's</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234320#M118818</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399872" data-lia-user-login="Tob_P" class="lia-mention lia-mention-user"&gt;Tob_P&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case the only solution is to have the group column in a disconnected two columns independent table that contains 3 rows of each group name, a column for the group name (Groups[Group]) and a column for the fiscal year (Groups[FY]). Then you can create a visual level filter measure which you need to place in the filter pane of the visual, select "is not blank" then apply the filter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FilterMeasure =&lt;BR /&gt;IF (&lt;BR /&gt;HASONEVALUE ( Groups[Group] ),&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER ( 'Table', 'Table'[Financial Year (SHM)] IN VALUES ( Groups[FY] ) )&lt;BR /&gt;),&lt;BR /&gt;1&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 16:01:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234320#M118818</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-14T16:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple FY's</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234357#M118822</link>
      <description>&lt;P&gt;Thanks for the insight &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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately this is something that I need as a slicer so the measure would work, but doesn't get me what I need. I think I will just amend my existing measures, and have one that includes the dates for Non COVID and another that looks for the last 3 FY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 18:17:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234357#M118822</guid>
      <dc:creator>Tob_P</dc:creator>
      <dc:date>2023-05-14T18:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple FY's</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234360#M118823</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399872" data-lia-user-login="Tob_P" class="lia-mention lia-mention-user"&gt;Tob_P&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please clarify the a little furthermore? You can use this as a slicer and you can use it in the visual itself. You can also filter any measure by filtering by the selected fiscal years in the Groups table. Not sure what your real case is.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 18:42:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-multiple-FY-s/m-p/3234360#M118823</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-14T18:42:50Z</dc:date>
    </item>
  </channel>
</rss>

