<?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: 1 Date table, how to filter dates on multiple relationship with condition at same time ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Date-table-how-to-filter-dates-on-multiple-relationship-with/m-p/3021466#M102821</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is what I am currently using in my models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my requirement is to be able to compute "the intersection of sales" using Delivery Date and Order Date at the same time but using 1 Date Table. Per exemple:&amp;nbsp; Sales where DeliveryDate &amp;gt;= 2023/01/08 and OrderDate &amp;lt;= 2023/01/01.&amp;nbsp; Maybe to have 2 slicer on the page to select the 2 dates range.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jan 2023 14:47:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-15T14:47:42Z</dc:date>
    <item>
      <title>1 Date table, how to filter dates on multiple relationship with condition at same time ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Date-table-how-to-filter-dates-on-multiple-relationship-with/m-p/3020277#M102723</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not how to name my post correctly but I have a fact table with multiple dates columns and 1 Date table. I compute my measures using userelationship. I have a case where I want to filter with multiple condition at the same time like: I have order date column and delivery date column and I want to be able to compute the total amount that was ordered before a certain date and delivered after another date. Exemple: Sales amount ordered before January 1st and deliverd after january 8.&lt;/P&gt;&lt;P&gt;If I had 2 date dimension it will be easy I will simply filter the order date dimension on dates before January 1st and my delivery date on dates after january 8.&lt;/P&gt;&lt;P&gt;But with only 1 date dimension and 2 relationship on the sales table , is it possible ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 21:14:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Date-table-how-to-filter-dates-on-multiple-relationship-with/m-p/3020277#M102723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-13T21:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: 1 Date table, how to filter dates on multiple relationship with condition at same time ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Date-table-how-to-filter-dates-on-multiple-relationship-with/m-p/3021063#M102783</link>
      <description>&lt;P&gt;Create two relationships on is date to order date the second date to delivery date. The first one will be active, the second inactive one.&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;&lt;BR /&gt;The measure for the delivery amount you will calculate using USERELATIONSHIP&lt;BR /&gt;Order Amount=&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[Revenue]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Delivery Amount = &lt;/SPAN&gt;&lt;SPAN&gt;Calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[Revenue]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[Delivery Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 14 Jan 2023 21:17:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Date-table-how-to-filter-dates-on-multiple-relationship-with/m-p/3021063#M102783</guid>
      <dc:creator>olgad</dc:creator>
      <dc:date>2023-01-14T21:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: 1 Date table, how to filter dates on multiple relationship with condition at same time ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Date-table-how-to-filter-dates-on-multiple-relationship-with/m-p/3021466#M102821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is what I am currently using in my models.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my requirement is to be able to compute "the intersection of sales" using Delivery Date and Order Date at the same time but using 1 Date Table. Per exemple:&amp;nbsp; Sales where DeliveryDate &amp;gt;= 2023/01/08 and OrderDate &amp;lt;= 2023/01/01.&amp;nbsp; Maybe to have 2 slicer on the page to select the 2 dates range.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 14:47:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Date-table-how-to-filter-dates-on-multiple-relationship-with/m-p/3021466#M102821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-15T14:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: 1 Date table, how to filter dates on multiple relationship with condition at same time ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Date-table-how-to-filter-dates-on-multiple-relationship-with/m-p/3021599#M102843</link>
      <description>&lt;P&gt;For the slicers you would need then the second data table which will not have any relationship to any table acting as parameter.&lt;/P&gt;&lt;P&gt;You put Date slicer 1 from Date table 1 for order date and Date slicer 2 &amp;nbsp;from Date Table 2 for delivery&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the formula then you use Calculate(Sum(Sales), Filter (Sales Table, Delivery Date &amp;gt;=Selectedvalue(DateTable 2 Date) &amp;amp;&amp;amp; Order Date &amp;lt;=SelectedValue(Date Table 1 Date))&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 19:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/1-Date-table-how-to-filter-dates-on-multiple-relationship-with/m-p/3021599#M102843</guid>
      <dc:creator>olgad</dc:creator>
      <dc:date>2023-01-15T19:33:42Z</dc:date>
    </item>
  </channel>
</rss>

