<?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: Measure not calculating all rows on a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477629#M67705</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356319" data-lia-user-login="JB" class="lia-mention lia-mention-user"&gt;JB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share the code for both Saturday Prior and Week Ending measures?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 11:46:13 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-04-26T11:46:13Z</dc:date>
    <item>
      <title>Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477484#M67691</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to make a table that only shows projects that started during or before the selected week, and are due to finish during or after the selected week.&lt;/P&gt;&lt;P&gt;I intend to use a binary 1/0 result to filter eligible results and have been testing this measure with a simple dataset in which all entries should return a 1 - but they aren't and&amp;nbsp;I can't work out why. I've added ALL to the filter part of the CALCULATE expression, so it shouldn't be excluding any data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 10:56:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477484#M67691</guid>
      <dc:creator>JB</dc:creator>
      <dc:date>2022-04-26T10:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477517#M67693</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356319" data-lia-user-login="JB" class="lia-mention lia-mention-user"&gt;JB&lt;/a&gt; , prefer to have and independent date table with week&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//assume week is selected&lt;/P&gt;
&lt;P&gt;Measure = &lt;/P&gt;
&lt;P&gt;var _max = maxx(allselected(Date),Date[Date])&lt;BR /&gt;var _min = minx(allselected(Date),Date[Date])&lt;/P&gt;
&lt;P&gt;var _max1 = maxx(allselected(Date),Date[Date]) -7&lt;BR /&gt;var _min1 = minx(allselected(Date),Date[Date])-7&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;CALCULATE(count('Table'[ID]), FILTER(Table,'Table'[Start Date] &amp;gt;= _min1 &amp;amp;&amp;amp;&amp;nbsp;'Table'[Start Date] &amp;lt;=_max1 &amp;amp;&amp;amp;&amp;nbsp;'Table'[End Date] &amp;gt;= _min &amp;amp;&amp;amp;&amp;nbsp;'Table'[EndDate] &amp;lt;=_max&amp;nbsp; ))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Week on Week and WTD &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=pnAesWxYgJ8" target="_blank"&gt;https://www.youtube.com/watch?v=pnAesWxYgJ8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 11:14:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477517#M67693</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-26T11:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477521#M67694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356319" data-lia-user-login="JB" class="lia-mention lia-mention-user"&gt;JB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you delete CALCULATE along with its modifiers it should work&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 11:17:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477521#M67694</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-26T11:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477591#M67701</link>
      <description>&lt;P&gt;It does, but once I complicate things by adding a date slicer to determine the Week Ending date, it continues to return 1 even for rows that should be 0.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 11:36:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477591#M67701</guid>
      <dc:creator>JB</dc:creator>
      <dc:date>2022-04-26T11:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477598#M67702</link>
      <description>&lt;P&gt;I have an independent date table that is used to slice the Week Ending date - the columns of dates shown above is just the simplified version to get the basics working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your CAL(COUNT(FILTER method but unfortunately it returns nothing, just empty cells.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 11:38:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477598#M67702</guid>
      <dc:creator>JB</dc:creator>
      <dc:date>2022-04-26T11:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477629#M67705</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356319" data-lia-user-login="JB" class="lia-mention lia-mention-user"&gt;JB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share the code for both Saturday Prior and Week Ending measures?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 11:46:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477629#M67705</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-26T11:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477654#M67707</link>
      <description>&lt;P&gt;It's supposed to work with a slicer that's connected to a date table consisting exclusively of Fridays.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var WE = SELECTEDVALUE('Slicer Calendar'[Week Ending])
var SP = (SELECTEDVALUE('Slicer Calendar'[Week Ending])-6)&lt;/LI-CODE&gt;&lt;P&gt;I disabled the slicer from interacting with the table and, as you can see above, it returns the Friday and Saturday dates for the week specified in the Start Date column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume that these are not the source of the problem since they are correctly calling out valid dates, so the calculation has a legitimate date range to work with.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 11:54:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477654#M67707</guid>
      <dc:creator>JB</dc:creator>
      <dc:date>2022-04-26T11:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477703#M67709</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356319" data-lia-user-login="JB" class="lia-mention lia-mention-user"&gt;JB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the relationship between the two tables?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 12:08:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477703#M67709</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-26T12:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477735#M67711</link>
      <description>&lt;P&gt;Sheet1[Start_Date] is linked to Slicer Calendar[Date] (active, filters both ways)&lt;/P&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>Tue, 26 Apr 2022 12:20:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477735#M67711</guid>
      <dc:creator>JB</dc:creator>
      <dc:date>2022-04-26T12:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477812#M67714</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="356319" data-lia-user-login="JB" class="lia-mention lia-mention-user"&gt;JB&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Try to add Start Date and End Date as measures (&lt;EM&gt;instead of coulumns&lt;/EM&gt; ) using SELECTEDVALUE then use the new measures in your code instead of MAX&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 12:45:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477812#M67714</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-26T12:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477903#M67719</link>
      <description>&lt;P&gt;The Start and End dates are the time frames for the projects, they aren't calculated and don't follow a pattern, they're human input.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 13:17:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2477903#M67719</guid>
      <dc:creator>JB</dc:creator>
      <dc:date>2022-04-26T13:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478037#M67737</link>
      <description>&lt;P&gt;I know. But still you can add them as Measures using SELECTEDVALUE&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 14:12:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478037#M67737</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-26T14:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478133#M67741</link>
      <description>&lt;P&gt;Sorry, I thought SELECTEDVALUE only worked on fields that were incorporated into a Slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this though and it returned all 0s unfortunately.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 14:39:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478133#M67741</guid>
      <dc:creator>JB</dc:creator>
      <dc:date>2022-04-26T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478144#M67742</link>
      <description>&lt;P&gt;The problem with the bi-directional relationship. Now try to CROSSFILTER The relationship to NONE&lt;/P&gt;&lt;P&gt;CLACULATE(your expression, CROSSFILTER ( coulmn name table1, coumn name table2, NONE))&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 14:42:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478144#M67742</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-26T14:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478185#M67744</link>
      <description>&lt;P&gt;Like this? It still isn't working, sorry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 14:54:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478185#M67744</guid>
      <dc:creator>JB</dc:creator>
      <dc:date>2022-04-26T14:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478250#M67750</link>
      <description>&lt;P&gt;Don't use variables. Ise the measures directly inside calculate and remove ALL&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 15:16:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478250#M67750</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-26T15:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478297#M67757</link>
      <description>&lt;P&gt;Still no success&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 15:37:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2478297#M67757</guid>
      <dc:creator>JB</dc:creator>
      <dc:date>2022-04-26T15:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Measure not calculating all rows on a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2480189#M67843</link>
      <description>&lt;P&gt;I got it to work correctly by changing the relationship between the two tables to a One to Many (the slicer date calendar being the one).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that I've copied the technique to the actual project I'm working on, it yields mixed results - as you can see from the below screenshot, some rows that should have 1s have 0s, even when they have the identical start/end dates as rows with 1s. Do you have any idea what's causing this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 10:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-not-calculating-all-rows-on-a-table/m-p/2480189#M67843</guid>
      <dc:creator>JB</dc:creator>
      <dc:date>2022-04-27T10:49:24Z</dc:date>
    </item>
  </channel>
</rss>

