<?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: Filter groups base on group age in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-groups-base-on-group-age/m-p/3309536#M123665</link>
    <description>&lt;P&gt;I solved this problem using parallelperiods combined with ALL and a variable table using SUMMARIZED.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 06:51:34 GMT</pubDate>
    <dc:creator>AFDCO</dc:creator>
    <dc:date>2023-06-30T06:51:34Z</dc:date>
    <item>
      <title>Filter groups base on group age</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-groups-base-on-group-age/m-p/3279367#M121767</link>
      <description>&lt;P&gt;Hi!,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently calculating %variation of last 12 month' sales of shopping centers and comparing it with same period last year (e.g. sales may2023-june2022 vs may2022- june2021... may2021- june2020... may2020- june2019, next month it will be shown june2023-july2022 vs june2022-july2021...). This is shown on a yearly line chart to show the trend of each year vs current.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Rent = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Factura'&lt;/SPAN&gt;&lt;SPAN&gt;[importe_emitido]&lt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N&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;anoMes&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Rent_L12M_%Var = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Rent_L12M_Current]-[Rent_L12M])/[Rent_L12M]&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The issue comes when a shopping center is new and has less than 12 months of sales or was new at that momoment of comparison and had not 12 months at that moment. For instance if a center was new in january 2020, it should be taken into account in the comparison of&amp;nbsp;may2023-june2022 vs&amp;nbsp;may2022-june2021 and may2023-june2022 vs&amp;nbsp;may2021-june2020, but not in&amp;nbsp;may2023-june2022 vs&amp;nbsp;may2020-june2019 because it didn' have invoicing over the whole period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how could I solve the metric??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Jun 2023 11:39:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-groups-base-on-group-age/m-p/3279367#M121767</guid>
      <dc:creator>AFDCO</dc:creator>
      <dc:date>2023-06-12T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filter groups base on group age</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-groups-base-on-group-age/m-p/3279688#M121793</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;In the case you are commenting, you want to evaluate the segment where there is data, that is, if a store opened in May-current vs one that opened in January of last year if you compare January-current (of last year) vs the new store you want&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Do you only have the segment of data it has (the history it has accumulated)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Jun 2023 13:48:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-groups-base-on-group-age/m-p/3279688#M121793</guid>
      <dc:creator>adrianVE278</dc:creator>
      <dc:date>2023-06-12T13:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter groups base on group age</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-groups-base-on-group-age/m-p/3289641#M122428</link>
      <description>&lt;P&gt;No, not really the comparison is not between stores, is between periods of the same stores. Data can be displayed store by store or multiple stores at the same time but data must be evalueted just in case the store has available data during the 12 months of the periods, if there are just 11 months available, then the store should be romeved of the aggregated result&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 19:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-groups-base-on-group-age/m-p/3289641#M122428</guid>
      <dc:creator>AFDCO</dc:creator>
      <dc:date>2023-06-18T19:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filter groups base on group age</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-groups-base-on-group-age/m-p/3309536#M123665</link>
      <description>&lt;P&gt;I solved this problem using parallelperiods combined with ALL and a variable table using SUMMARIZED.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 06:51:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-groups-base-on-group-age/m-p/3309536#M123665</guid>
      <dc:creator>AFDCO</dc:creator>
      <dc:date>2023-06-30T06:51:34Z</dc:date>
    </item>
  </channel>
</rss>

