<?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: ALLSELECTED ignoring page level filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223526#M52860</link>
    <description>&lt;P&gt;Sorry, it isn't very clear what these calculations are supposed to represent, so it's a bit like shooting in the dark.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This might be what you're looking for but I can't really tell from the information provided:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Est Scale =
DIVIDE (
    SUM ( TableD[Sample Weight] ),
    CALCULATE ( [Ratio], ALLSELECTED ( TableD ) )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 06 Dec 2021 18:15:31 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2021-12-06T18:15:31Z</dc:date>
    <item>
      <title>ALLSELECTED ignoring page level filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2220418#M52679</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am having a problem doing something in Power BI that should be quite easy but is proving to be quite difficult.&amp;nbsp; Here is the setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The datatables are TableA (which contains [Mill Number]) -&amp;gt; TableB (which contains [Population Number]) -&amp;gt; TableC (which contains [Report Period Date] -&amp;gt; TableD, which contains the data in the table object as follows:&lt;UL&gt;&lt;LI&gt;TableD[Load Table]&lt;/LI&gt;&lt;LI&gt;TableD[Sample Weight]&lt;/LI&gt;&lt;LI&gt;TableD[Net Scale]&lt;/LI&gt;&lt;LI&gt;New Column[Est Scale] = TableD[Sample Weight] / New Column[colRatio]&lt;/LI&gt;&lt;LI&gt;New Column[Diff] = TableD[Net Scale] - New Column[Est Scale]&lt;/LI&gt;&lt;LI&gt;New Column[colRatio] = CALCULATE([Ratio], ALLSELECTED(TableD)) - I have to do this with a CALCULATE function because if I use [Ratio] directly, I get a circular error.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The following measure has also been created:&lt;UL&gt;&lt;LI&gt;Ratio = SUM(TableD[Sample Weight]) / SUM(TableD[Net Scale]) = 821.112&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The colRatio column does not match the Ratio measure, which means the Est Scale column is incorrect.&amp;nbsp; Analysis shows that the number colRatio does display (800.903) is the correct result if there were no page level filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I using the ALLSELECTED method correctly?&amp;nbsp; How do I set the colRatio column to the Ratio measure value, or at least recreate the calculation that make the Ratio measure value for each row in the colRatio column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated and if you need any more information, I would be happy to provide it.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 19:03:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2220418#M52679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-03T19:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED ignoring page level filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2220669#M52691</link>
      <description>&lt;P&gt;ALLSELECTED is not as simple as it might seem at first. Read this for the gory details:&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, your issue might simply be that you're expecting a calculated column to be sensitive to report filters. Calculated columns&amp;nbsp;&lt;EM&gt;cannot&lt;/EM&gt; be dynamically responsive to user interaction via slicers and filters since it's only computed once each time your data model is first loaded or refreshed, not in response to what the user is doing. Measures, on the other hand,&amp;nbsp;&lt;EM&gt;are&lt;/EM&gt; intended to be dynamically responsive.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 22:51:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2220669#M52691</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-03T22:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED ignoring page level filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2221462#M52772</link>
      <description>&lt;P&gt;&lt;SPAN&gt;So is there any way I can get a calculated column to be dynamically responsive?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 19:56:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2221462#M52772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-05T19:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED ignoring page level filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2221464#M52773</link>
      <description>&lt;P&gt;No. For the reasons I pointed out, this is fundamentally impossible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, measures are&amp;nbsp;&lt;EM&gt;meant&lt;/EM&gt; to be dynamic and I don't see any reason why a measure wouldn't work just as well as a calculated column for your visual.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 20:00:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2221464#M52773</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-05T20:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED ignoring page level filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223085#M52830</link>
      <description>&lt;P&gt;The Est Scale column is the row value Sample Weight divided by the measure Ratio.&amp;nbsp; Is there a way to use a calculated value in each row without using a new column?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 14:32:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223085#M52830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-06T14:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED ignoring page level filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223238#M52843</link>
      <description>&lt;P&gt;That can be a measure too. See if this works:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Est Scale = SUM ( TableD[Sample Weight] ) / [Ratio]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Dec 2021 15:41:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223238#M52843</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-06T15:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED ignoring page level filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223363#M52853</link>
      <description>&lt;P&gt;Unfortunately, that returns a value as if that row was the only row in the table.&amp;nbsp; Same thing as if I use a SUMX(TableD, TableD[Sample Weight]) / [Ratio].&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 16:44:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223363#M52853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-06T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED ignoring page level filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223526#M52860</link>
      <description>&lt;P&gt;Sorry, it isn't very clear what these calculations are supposed to represent, so it's a bit like shooting in the dark.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This might be what you're looking for but I can't really tell from the information provided:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Est Scale =
DIVIDE (
    SUM ( TableD[Sample Weight] ),
    CALCULATE ( [Ratio], ALLSELECTED ( TableD ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Dec 2021 18:15:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223526#M52860</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-06T18:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED ignoring page level filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223802#M52878</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; That worked.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 20:58:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-ignoring-page-level-filters/m-p/2223802#M52878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-06T20:58:02Z</dc:date>
    </item>
  </channel>
</rss>

