<?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: sales from different dates range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3576109#M137872</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp; thank you so much;&lt;/P&gt;&lt;P&gt;it works perfectely.&lt;BR /&gt;please one more thing if you want, how i can visualize this by "Seller" (i dont have a relationship between the 2 tables)&lt;BR /&gt;thank you again&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Dec 2023 10:25:17 GMT</pubDate>
    <dc:creator>Sofiane85</dc:creator>
    <dc:date>2023-12-10T10:25:17Z</dc:date>
    <item>
      <title>sales from different dates range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3572514#M137741</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;i have 2 tables, "Sales" and "Target"&lt;BR /&gt;in the Target table there is some of products and 2 dates columns : Start Date and End Date,&lt;BR /&gt;please, i need to calculate the sales from "Sales" table, only for dates that are between (&amp;gt;=&amp;nbsp; &amp;lt;=) the start date and end date, and only for the products that are in the Target Table (not all products of sales table)&lt;BR /&gt;the result needed in image&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Target test" href="https://drive.google.com/file/d/16gRvHZYBhl1KW1ebu0OF6ZfVS9ipuARD/view?usp=sharing" target="_self"&gt;Target test&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 13:10:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3572514#M137741</guid>
      <dc:creator>Sofiane85</dc:creator>
      <dc:date>2023-12-07T13:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: sales from different dates range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3572561#M137745</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476139" data-lia-user-login="Sofiane85" class="lia-mention lia-mention-user"&gt;Sofiane85&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Add following culumn to your target table:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales = 
VAR __Prod = Target[Product] 
VAR __DateStart = Target[start date] 
VAR __DateEnd = Target[end date] 
VAR __Result = 
SUMX(
    FILTER(
        Sales,
        Sales[Product] = __Prod &amp;amp;&amp;amp;
        Sales[Date] &amp;gt;= __DateStart &amp;amp;&amp;amp; Sales[Date] &amp;lt;= __DateEnd 
    ),
    Sales[Qte]
)
RETURN
    __Result&lt;/LI-CODE&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;</description>
      <pubDate>Thu, 07 Dec 2023 13:31:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3572561#M137745</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-07T13:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: sales from different dates range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3576109#M137872</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp; thank you so much;&lt;/P&gt;&lt;P&gt;it works perfectely.&lt;BR /&gt;please one more thing if you want, how i can visualize this by "Seller" (i dont have a relationship between the 2 tables)&lt;BR /&gt;thank you again&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 10:25:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3576109#M137872</guid>
      <dc:creator>Sofiane85</dc:creator>
      <dc:date>2023-12-10T10:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: sales from different dates range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3576149#M137874</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476139" data-lia-user-login="Sofiane85" class="lia-mention lia-mention-user"&gt;Sofiane85&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The Seller column is in the Sales table, what is your question exactly?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 12:16:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3576149#M137874</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-10T12:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: sales from different dates range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3576201#M137877</link>
      <description>&lt;P&gt;exactely, the seller is in the Sales table, and i want to visualize the sales by Seller and product in the date ranges&amp;nbsp;&lt;BR /&gt;and image for exemple&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 13:52:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3576201#M137877</guid>
      <dc:creator>Sofiane85</dc:creator>
      <dc:date>2023-12-10T13:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: sales from different dates range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3576318#M137884</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476139" data-lia-user-login="Sofiane85" class="lia-mention lia-mention-user"&gt;Sofiane85&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You need to specify the logic to allocate the sales against the sellers. looking at your data, there is not target defined by seller, only by product level.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 18:51:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3576318#M137884</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-10T18:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: sales from different dates range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3580121#M138077</link>
      <description>&lt;P&gt;thank you so much my friend, you helped me a lot, i adapted your measure to the sales table, and it works &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;than you again&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 15:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sales-from-different-dates-range/m-p/3580121#M138077</guid>
      <dc:creator>Sofiane85</dc:creator>
      <dc:date>2023-12-12T15:56:51Z</dc:date>
    </item>
  </channel>
</rss>

