<?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: CALCULATE function with DATEBETWEEN function showing NULL values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-function-with-DATEBETWEEN-function-showing-NULL-values/m-p/3020639#M102747</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Your question is not clear.&amp;nbsp; Share data in a format the can be pasted in an MS Excel file and show the expected result.&lt;/P&gt;</description>
    <pubDate>Sat, 14 Jan 2023 05:22:22 GMT</pubDate>
    <dc:creator>Ashish_Mathur</dc:creator>
    <dc:date>2023-01-14T05:22:22Z</dc:date>
    <item>
      <title>CALCULATE function with DATEBETWEEN function showing NULL values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-function-with-DATEBETWEEN-function-showing-NULL-values/m-p/3018405#M102583</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I have three tables ("Date Table", "Inventory", and " sales" ). I want the last 30 days' sales of quantity for each item from the "current date"(This column in the "Inventory" table). I have tried but it showing blank.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I have tried the below measures&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY OP:-&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And please tell me why this is happening and what's the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!!&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 05:34:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-function-with-DATEBETWEEN-function-showing-NULL-values/m-p/3018405#M102583</guid>
      <dc:creator>rashesh</dc:creator>
      <dc:date>2023-01-13T05:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function with DATEBETWEEN function showing NULL values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-function-with-DATEBETWEEN-function-showing-NULL-values/m-p/3018595#M102603</link>
      <description>&lt;P&gt;1, you need to mark Calendar Table as Date Table&lt;/P&gt;
&lt;P&gt;2, Create one-to-many relationship from Calendar to Inventory, and to Sales&lt;/P&gt;
&lt;P&gt;3, try this measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Last30Days=VAR _date=Max(Inventory[Current Date]) VAR _item=MAX(Inventory[Item_ID]) RETURN CALCULATE(SUM(Sales[Quantity]),DATESINPERIOD(Calendar[Date],_date,-30,DAY),Sales[ItemID]=_item)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 07:33:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-function-with-DATEBETWEEN-function-showing-NULL-values/m-p/3018595#M102603</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-01-13T07:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function with DATEBETWEEN function showing NULL values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-function-with-DATEBETWEEN-function-showing-NULL-values/m-p/3018913#M102630</link>
      <description>&lt;P&gt;Hi Daniel,&lt;BR /&gt;Thanks for Ans but it is not working. and still getting the same error as before.&lt;BR /&gt;And for your second point I can not able to make the relationship between the calendar and inventory and when I try to it is creating inactive.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 10:09:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-function-with-DATEBETWEEN-function-showing-NULL-values/m-p/3018913#M102630</guid>
      <dc:creator>rashesh</dc:creator>
      <dc:date>2023-01-13T10:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function with DATEBETWEEN function showing NULL values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-function-with-DATEBETWEEN-function-showing-NULL-values/m-p/3020639#M102747</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Your question is not clear.&amp;nbsp; Share data in a format the can be pasted in an MS Excel file and show the expected result.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 05:22:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-function-with-DATEBETWEEN-function-showing-NULL-values/m-p/3020639#M102747</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2023-01-14T05:22:22Z</dc:date>
    </item>
  </channel>
</rss>

