<?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: SPLY with Multiple Date Columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SPLY-with-Multiple-Date-Columns/m-p/3886185#M151597</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="261788" data-lia-user-login="NilR" class="lia-mention lia-mention-user"&gt;NilR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to me that you don't need to have two calendar tables in your data model.&amp;nbsp; You can just have one calendar table and create inactive relationship between your calendar table and either of the Service Date Column or Paid Date Column, and then userelationship dax function to activate the inactive relationship.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2024 13:12:56 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2024-05-02T13:12:56Z</dc:date>
    <item>
      <title>SPLY with Multiple Date Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SPLY-with-Multiple-Date-Columns/m-p/3886108#M151596</link>
      <description>&lt;P&gt;I have Service Date Column and Paid Date Column that might occures 3-6 month after the service date. So for instance I need to filter the dashboard 12 months of service and 15 months of Paid, How can I apply SPLY to the both [svc date] and [paid date] in a calculated measure&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;[INVOICE] &lt;/STRONG&gt;&lt;FONT color="#000000"&gt;in a new measure!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;VAR _SVC_MAX_DATE = MAX('SERVICE CALENDAR'[Date])
VAR _SVC_MIN_DATE= MIN('SERVICE CALENDAR'[Date])
VAR _PD_MAX_DATE = MAX('PAID CALENDAR'[Date])
VAR _PD_MIN_DATE= MIN('PAID CALENDAR'[Date])
RETURN
CALCULATE([INVOICE],SAMEPERIODLASTYEAR('INVOICE'[SVC_DT]),'INVOICE'[CLM_DT]&amp;gt;= _SVC_MIN_DATE &amp;amp;&amp;amp; 'INVOCE'[SVC_DT] &amp;lt;= _CLM_MAX_DATE)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 12:48:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SPLY-with-Multiple-Date-Columns/m-p/3886108#M151596</guid>
      <dc:creator>NilR</dc:creator>
      <dc:date>2024-05-02T12:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: SPLY with Multiple Date Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SPLY-with-Multiple-Date-Columns/m-p/3886185#M151597</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="261788" data-lia-user-login="NilR" class="lia-mention lia-mention-user"&gt;NilR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to me that you don't need to have two calendar tables in your data model.&amp;nbsp; You can just have one calendar table and create inactive relationship between your calendar table and either of the Service Date Column or Paid Date Column, and then userelationship dax function to activate the inactive relationship.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 13:12:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SPLY-with-Multiple-Date-Columns/m-p/3886185#M151597</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-05-02T13:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: SPLY with Multiple Date Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SPLY-with-Multiple-Date-Columns/m-p/3886504#M151610</link>
      <description>&lt;P&gt;Thank you very new to stuff you just said &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; is there any article or something similar that I can read about ? or giving me an example?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 14:51:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SPLY-with-Multiple-Date-Columns/m-p/3886504#M151610</guid>
      <dc:creator>NilR</dc:creator>
      <dc:date>2024-05-02T14:51:39Z</dc:date>
    </item>
  </channel>
</rss>

