<?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() doesn't work in filter formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1365181#M24765</link>
    <description>&lt;P&gt;I found the reason.&amp;nbsp; I have created a new column called sales vol Juanary3. I meant to create a new measure, which is clearly not the case. I should have checked the fields panel more carefully.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 17:03:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-11T17:03:10Z</dc:date>
    <item>
      <title>all() doesn't work in filter formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1365045#M24760</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a small sales volumen table (fact table), this table is linked to order date table (dimension table). I then created a measure as below, which works normally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sales vol Jan = calculate(sum(sales[sales amt]),filter('order date', 'order date'[order month]="2019-01"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;however, something strange happened when it add all() to the filter formula.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sales vol January3 = calculate(sum(sales[sales amt]),filter(all('order date'), 'order date'[order month]="2019-01"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It looks like the all() has caused a problem here, not sure about the reason.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 16:24:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1365045#M24760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-11T16:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: all() doesn't work in filter formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1365056#M24762</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Would need to understand your source data and expected output but yes, ALL can dramatically alter a calculation because you are essentially ignoring all filter context that have been placed on that calculation like column you are in, row you are in, any visual filters, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 16:30:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1365056#M24762</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-11T16:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: all() doesn't work in filter formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1365099#M24764</link>
      <description>&lt;P&gt;Here is the sales table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Order DateShip Datecategorysales amt&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;2019-01-01&lt;/TD&gt;&lt;TD&gt;2019-01-01&lt;/TD&gt;&lt;TD&gt;coffee&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-01-01&lt;/TD&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;tea&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-01-01&lt;/TD&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;popcorn&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-01-01&lt;/TD&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;chocolate&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;coffee&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;tea&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;popcorn&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;2019-02-01&lt;/TD&gt;&lt;TD&gt;chocolate&lt;/TD&gt;&lt;TD&g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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's linked to 'order date' table via 'order date' column. Below is a screen shot of 'order date' table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 16:44:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1365099#M24764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-11T16:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: all() doesn't work in filter formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1365181#M24765</link>
      <description>&lt;P&gt;I found the reason.&amp;nbsp; I have created a new column called sales vol Juanary3. I meant to create a new measure, which is clearly not the case. I should have checked the fields panel more carefully.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 17:03:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1365181#M24765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-11T17:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: all() doesn't work in filter formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1366393#M24805</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Even if you author a measure as such, the result still unreasonable.&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As the FILTER(ALL(order date), ... ) returns a table with a column&amp;nbsp;&lt;SPAN&gt;'order date'[order month]="2019-01", it overrides all other filter context from the matrix, say [order month]="2019-02", "2019-03"..."2019-12", thus every row of matrix will be filled with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sum(sales[sales amt]) of "2019-01".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2020 19:25:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/all-doesn-t-work-in-filter-formula/m-p/1366393#M24805</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-09-12T19:25:40Z</dc:date>
    </item>
  </channel>
</rss>

