<?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: ALL function not working as expected for a DAX Formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-function-not-working-as-expected-for-a-DAX-Formula/m-p/1723986#M35670</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , these seems correct. Are facing value issue or some error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX2 =NageGroup= CALCULATE(sum(DM_AgeGrouping[validRecordbit]),ALL(MainStarTable[OID]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Means other then OID view in table, you should see filter on OID is removed. For the OID group by/view you will see total value without filter with selected value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/" target="_blank"&gt;https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/" target="_blank"&gt;https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 04:24:35 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-03-16T04:24:35Z</dc:date>
    <item>
      <title>ALL function not working as expected for a DAX Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-function-not-working-as-expected-for-a-DAX-Formula/m-p/1723501#M35659</link>
      <description>&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-post-date lia-component-post-date lia-component-message-view-widget-post-date"&gt;&lt;SPAN&gt;Hi,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I'm working on a PowerBI report&amp;nbsp; and one of the DAX is not working as expected. I use various filters in the page and at a particular scenario the ALL function is not working as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example I use below filters&lt;/P&gt;&lt;P&gt;1. &lt;SPAN&gt;MainStarTable[&lt;/SPAN&gt;OID]&lt;/P&gt;&lt;P&gt;2. &lt;SPAN&gt;MainStarTable[FID]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;SPAN&gt;MainStarTable[LengtOFstay]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;MainStarTable[DateRange]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When using only FID and OID filters all the below DAX is returing the expected results. But when I use all the filters combined DAX3 and DAX2 is not working as expected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAX1&amp;nbsp; =ageGroup&lt;SPAN&gt;= CALCULATE(sum(DM_AgeGrouping[validRecordbit]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DAX2&amp;nbsp; =NageGroup=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE(sum(DM_AgeGrouping[validRecordbit]),ALL(MainStarTable[OID]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DAX3&amp;nbsp; =OageGroup=CALCULATE(sum(DM_AgeGrouping[validRecordbit]),ALL(MainStarTable[FID],MainStarTable[OID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is with DAX3 and DAX2. For some reason DAX3/DAX2 is not utilizing the function &lt;SPAN&gt;ALL(MainStarTable[FID],MainStarTable[OID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone have any suggestion, please let me know. Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Mar 2021 00:11:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-function-not-working-as-expected-for-a-DAX-Formula/m-p/1723501#M35659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-16T00:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALL function not working as expected for a DAX Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-function-not-working-as-expected-for-a-DAX-Formula/m-p/1723986#M35670</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , these seems correct. Are facing value issue or some error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX2 =NageGroup= CALCULATE(sum(DM_AgeGrouping[validRecordbit]),ALL(MainStarTable[OID]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Means other then OID view in table, you should see filter on OID is removed. For the OID group by/view you will see total value without filter with selected value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/" target="_blank"&gt;https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/" target="_blank"&gt;https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 04:24:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-function-not-working-as-expected-for-a-DAX-Formula/m-p/1723986#M35670</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-16T04:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: ALL function not working as expected for a DAX Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-function-not-working-as-expected-for-a-DAX-Formula/m-p/1725061#M35700</link>
      <description>&lt;P&gt;&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; Yes I know how this works. Problem is I'm missing some values in the OID columns which is not suppose to happen when OID filters are used. Again use the below link to download the sample file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/s0xkou30i1g1keg/TestFile.pbix?dl=0" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://www.dropbox.com/s/s0xkou30i1g1keg/TestFile.pbix?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 11:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALL-function-not-working-as-expected-for-a-DAX-Formula/m-p/1725061#M35700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-16T11:33:42Z</dc:date>
    </item>
  </channel>
</rss>

