<?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: ProductX returning unexpected results when iterating over date. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3321959#M124351</link>
    <description>&lt;P&gt;Can you provide a pbix that demonstrates the issue?&lt;/P&gt;</description>
    <pubDate>Sun, 09 Jul 2023 15:08:35 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-07-09T15:08:35Z</dc:date>
    <item>
      <title>ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3282480#M121941</link>
      <description>&lt;P&gt;I have created two PBIX file, everything is the same, except for the date dimention is useding a string, 1-8, instead of a date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that being the only change, I am getting getting different results on productx measure&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to the two PBIX Files&lt;/P&gt;&lt;P&gt;&lt;A title="Original URL: https://docs.mobius.kiwi/f/4526097a6d2e49cdbd5c/. Click or tap if you trust this link." href="https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.mobius.kiwi%2Ff%2F4526097a6d2e49cdbd5c%2F&amp;amp;data=05%7C01%7Cmichael.keppel%40consilium.co.nz%7C8532ebd9a7f44655460608db6c5df425%7C83a5ad22c023409091c52e39df3a6d9d%7C0%7C0%7C638222923018708673%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=27y831IdE4%2FYi7Cvc6mRte7qjowR7VnrCppEnhooQB8%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://docs.mobius.kiwi/f/4526097a6d2e49cdbd5c/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;A title="Original URL: https://docs.mobius.kiwi/f/3066c5de5db04c9fbd79/. Click or tap if you trust this link." href="https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.mobius.kiwi%2Ff%2F3066c5de5db04c9fbd79%2F&amp;amp;data=05%7C01%7Cmichael.keppel%40consilium.co.nz%7C8532ebd9a7f44655460608db6c5df425%7C83a5ad22c023409091c52e39df3a6d9d%7C0%7C0%7C638222923018708673%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=tojgu3%2BWduyzs%2FpmXt84UppZrIOII74cNFBsTs4yYdc%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://docs.mobius.kiwi/f/3066c5de5db04c9fbd79/&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;The measure I am using is&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;tmpmreturnsproduct = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; mindateapplied = &lt;/SPAN&gt;&lt;SPAN&gt;MINX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;('DimDate'), 'DimDate'[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;PRODUCTX&lt;/SPAN&gt;&lt;SPAN&gt;('DimDate',&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;+[tmpmReturns]),&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;('DimDate'),'DimDate'[Date]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;('DimDate'[Date]) &amp;amp;&amp;amp; 'DimDate'[Date] &amp;gt;= mindateapplied))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am completly stumpt has to why I would get different results with iterating over a date, or have had any luck working out the correct Dax for the Date formated version.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Doing Some more testing. As soon as I change the Datatype in the Date Table from Whole Number to Date, the 'calculation error' occuers...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Jun 2023 23:01:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3282480#M121941</guid>
      <dc:creator>MKeppel</dc:creator>
      <dc:date>2023-06-13T23:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3284746#M122090</link>
      <description>&lt;P&gt;get rid of the Auto Date/Time hierarchy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 01:15:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3284746#M122090</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-06-15T01:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3284811#M122093</link>
      <description>&lt;P&gt;Thanks... Would love to know what / why that causes the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 01:43:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3284811#M122093</guid>
      <dc:creator>MKeppel</dc:creator>
      <dc:date>2023-06-15T01:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3284838#M122094</link>
      <description>&lt;P&gt;That does look like it works on the file I sent over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried it on my main file, I still have the same issue.. Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 02:05:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3284838#M122094</guid>
      <dc:creator>MKeppel</dc:creator>
      <dc:date>2023-06-15T02:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3285767#M122147</link>
      <description>&lt;P&gt;Disable auto date/time globally.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 10:58:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3285767#M122147</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-06-15T10:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3294254#M122685</link>
      <description>&lt;P&gt;Takes, forgot ther is one for global and one for dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, playing around with it more (making it work with my main dataset, i was still having isssues), for some strange unknown reason, on the date table as soon as I create Day Number Column&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Day Number = &lt;/SPAN&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DimDate&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;even just creating another column with the same value Date2 = DimDate[Date] causes the error, but some fomulars like EOM = EOMONTH(DimDate[Date],0)&amp;nbsp; works fine?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Sur&lt;SPAN&gt;ely this is some type of bug now?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jun 2023 01:33:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3294254#M122685</guid>
      <dc:creator>MKeppel</dc:creator>
      <dc:date>2023-06-21T01:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3321959#M124351</link>
      <description>&lt;P&gt;Can you provide a pbix that demonstrates the issue?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2023 15:08:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3321959#M124351</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-09T15:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3322206#M124378</link>
      <description>&lt;P&gt;&lt;A href="https://docs.mobius.kiwi/f/25c11a74ec9c4891bbe9/" target="_blank" rel="noopener"&gt;https://docs.mobius.kiwi/f/25c11a74ec9c4891bbe9/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look at the&amp;nbsp;&lt;SPAN&gt;tmpmreturnsproduct , returning all 100's.. then delete the column day number column and the measure calculates as you would expect.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 01:18:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3322206#M124378</guid>
      <dc:creator>MKeppel</dc:creator>
      <dc:date>2023-07-10T01:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3324078#M124464</link>
      <description>&lt;P&gt;I did some mild refactoring.&amp;nbsp; You will want to avoid nested measures if you can, and fancy filter constructs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I seem to recall that the Italians have already written about your scenario. Something about a covering column that needs to be included in the filter context.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 00:08:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3324078#M124464</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-11T00:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3324366#M124474</link>
      <description>&lt;P&gt;Thanks for that, time go back to reading the fundementals....&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 04:41:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3324366#M124474</guid>
      <dc:creator>MKeppel</dc:creator>
      <dc:date>2023-07-11T04:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: ProductX returning unexpected results when iterating over date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3325999#M124545</link>
      <description>&lt;P&gt;Here's an interesting article around the subject&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/introducing-allselected-in-dax/" target="_blank"&gt;Introducing ALLSELECTED in DAX - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 20:26:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ProductX-returning-unexpected-results-when-iterating-over-date/m-p/3325999#M124545</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-07-11T20:26:18Z</dc:date>
    </item>
  </channel>
</rss>

