<?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: getting nowhere with DATESBETWEEN - invalid numeric representation of a date value was encountered in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4825181#M184382</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1353619" data-lia-user-login="RichardBarnard" class="lia-mention lia-mention-user"&gt;RichardBarnard&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;gave you already some great suggestions, I want to add to his valuable contribution the answer to your question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note the measure can't be dragged into rows- i'm assuming this is normal?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The answer is that this is normal, you cannot group a measure but only a column. The reason is that a measure does not have any value to inspect to generate the list of distinct values (that's what grouping means and that's what happens if you drag and drop a column into the Rows/Columns section of a pivot). On the contrary, a column has a list of values (since it is a column, so by definition) and so out of the values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is not possible with a measure for the reason written above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A final detail: the above should also be valid for the filters section of pivot tables and for slicers. And indeed this is the case in Power Pivot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Power BI you can use a measure as a filter, a thing that should be impossible based on what I wrote above. Point is that Micrsoft defines only in Power BI a sophsticated mechanism to allows you to use a measure as a filter on a visual. The post would become terribly long if I went into details, but feel free to open another post in which you might want us to get deep into this fantastic (but complex to understand) feature in the future!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this adds some value to what&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;wrote&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;@me in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
    <pubDate>Sat, 13 Sep 2025 15:41:07 GMT</pubDate>
    <dc:creator>FBergamaschi</dc:creator>
    <dc:date>2025-09-13T15:41:07Z</dc:date>
    <item>
      <title>getting nowhere with DATESBETWEEN - invalid numeric representation of a date value was encountered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4824472#M184368</link>
      <description>&lt;P&gt;Hi, I am really stuck with this (writing measure only within PowerPivot model).. but keeping things very simple, I have a calendar table and then some sales data. the tables are linked by date relationship. calendar table is set as the date table.&lt;/P&gt;&lt;P&gt;My calendar dates are in format (UK) so 01/01/2025 for example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My ultimate objective is to be able to pull sales for a set date range using DATESBETWEEN...&lt;/P&gt;&lt;P&gt;Before I even get that far, I can't even derive a pivot table of dates to verify DATESBETWEEN even works. My measure for this is simply:&amp;nbsp;=DATESBETWEEN('Calendar'[Date],01/01/2025,31/01/2025) . Category set to Date and the short date format selected.&lt;BR /&gt;When pivoting I would hope to reveal the list of dates but receive this error:&lt;/P&gt;&lt;P&gt;"MdxScript(Model) (6, 46) Calculation error in measure &amp;lt;Measure name&amp;gt;: An invalid numeric representation of a date was encountered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the measure can't be dragged into rows- i'm assuming this is normal?&lt;/P&gt;&lt;P&gt;Is this DAX perhanps not available outside of power BI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other suggestions to overcome this? I have determined start and end dates.. i just want to sum my sales based on those..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 11:27:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4824472#M184368</guid>
      <dc:creator>RichardBarnard</dc:creator>
      <dc:date>2025-09-12T11:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: getting nowhere with DATESBETWEEN - invalid numeric representation of a date value was encountered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4824532#M184371</link>
      <description>&lt;P&gt;There's a couple of issues here. Firstly, to specify date arguments you need to use the DATE function,&amp;nbsp; so it would be&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DATESBETWEEN('Calendar'[Date], DATE( 2025, 1, 1 ) DATE( 2025, 1,31 ) )&lt;/LI-CODE&gt;
&lt;P&gt;Secondly, DATESBETWEEN returns a table whereas a measure needs to return a scalar value. For checking you could wrap COUNTROWS around the DATESBETWEEN.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 12:24:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4824532#M184371</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-09-12T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: getting nowhere with DATESBETWEEN - invalid numeric representation of a date value was encountered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4824695#M184374</link>
      <description>&lt;P&gt;Thank you. I will take a look and see if I can get somewhere with this. as I progress this, I actually want to define "START DATE" "END DATE" so my formulae&amp;nbsp; &amp;nbsp;for DATE(... ) would just reference those directly. I need to do some reading&amp;nbsp; up around that scalar vs table thing. My experience is quite limited as you can tell! Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 15:30:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4824695#M184374</guid>
      <dc:creator>RichardBarnard</dc:creator>
      <dc:date>2025-09-12T15:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: getting nowhere with DATESBETWEEN - invalid numeric representation of a date value was encountered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4825181#M184382</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1353619" data-lia-user-login="RichardBarnard" class="lia-mention lia-mention-user"&gt;RichardBarnard&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;gave you already some great suggestions, I want to add to his valuable contribution the answer to your question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note the measure can't be dragged into rows- i'm assuming this is normal?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The answer is that this is normal, you cannot group a measure but only a column. The reason is that a measure does not have any value to inspect to generate the list of distinct values (that's what grouping means and that's what happens if you drag and drop a column into the Rows/Columns section of a pivot). On the contrary, a column has a list of values (since it is a column, so by definition) and so out of the values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is not possible with a measure for the reason written above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A final detail: the above should also be valid for the filters section of pivot tables and for slicers. And indeed this is the case in Power Pivot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Power BI you can use a measure as a filter, a thing that should be impossible based on what I wrote above. Point is that Micrsoft defines only in Power BI a sophsticated mechanism to allows you to use a measure as a filter on a visual. The post would become terribly long if I went into details, but feel free to open another post in which you might want us to get deep into this fantastic (but complex to understand) feature in the future!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this adds some value to what&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;wrote&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;@me in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
      <pubDate>Sat, 13 Sep 2025 15:41:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4825181#M184382</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-09-13T15:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: getting nowhere with DATESBETWEEN - invalid numeric representation of a date value was encountered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4828048#M184446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1353619" data-lia-user-login="RichardBarnard" class="lia-mention lia-mention-user"&gt;RichardBarnard&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN data-teams="true"&gt;hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 05:20:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4828048#M184446</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-09-17T05:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: getting nowhere with DATESBETWEEN - invalid numeric representation of a date value was encountered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4832055#M184569</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1353619" data-lia-user-login="RichardBarnard" class="lia-mention lia-mention-user"&gt;RichardBarnard&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN data-teams="true"&gt;Hope you're doing okay! May we know if it worked for you, or are you still experiencing difficulties? Let us know — your feedback can really help others in the same situation.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 09:05:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4832055#M184569</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-09-22T09:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: getting nowhere with DATESBETWEEN - invalid numeric representation of a date value was encountered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4832322#M184582</link>
      <description>&lt;P&gt;thanks all for the support!! and prompt engagement. I am still trying to get back to this piece of work so I can test out your proposals. Will update and mark solutions asap. thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 12:34:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4832322#M184582</guid>
      <dc:creator>RichardBarnard</dc:creator>
      <dc:date>2025-09-22T12:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: getting nowhere with DATESBETWEEN - invalid numeric representation of a date value was encountered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4835197#M184673</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1353619" data-lia-user-login="RichardBarnard" class="lia-mention lia-mention-user"&gt;RichardBarnard&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN data-teams="true"&gt;Could you please let us know the ETA by when you will be able to test the provided solution? This will help us to know when we can follow up. If you encounter any challenges during implementing the provided answers, please inform us and we’ll be glad to assist.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 09:34:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/getting-nowhere-with-DATESBETWEEN-invalid-numeric-representation/m-p/4835197#M184673</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-09-25T09:34:57Z</dc:date>
    </item>
  </channel>
</rss>

