<?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: Combination Summarized and ALLSELECTED function not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combination-Summarized-and-ALLSELECTED-function-not-working/m-p/1957614#M42749</link>
    <description>&lt;P&gt;Hi Jihwan_kim,&lt;BR /&gt;Thanks for your reply. However, it does not solve my issue. The issue that I encounter is that my counter is not working properly. It only works in the row total but it isn't able to count the number of skus below threshold per category. eg, in example1 without filters, it should result in counter = 1 for category A,B and C. and in example2, incl filter category is not A, it should give 1 only for category B&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 14:17:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-14T14:17:13Z</dc:date>
    <item>
      <title>Combination Summarized and ALLSELECTED function not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combination-Summarized-and-ALLSELECTED-function-not-working/m-p/1957155#M42721</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am dealing with the following Challenge. I am trying to determine the number of SKUs within a category that are not reaching the 15% NOS contribution target. It sounds quite easy. However, I want to use an allselected function in de denominator for the NOS contribution so that it will be recalculated if we filter on Category using a slicer. In the 2 screenshots of the report below, the "Below threshold 0.15" is working fine, however the counter is only working for the grand total but it isn't working per category nor per SKU... Apparently, the ALLSELECTED is ignored there and it will return a 100% for the NOS contribution in each line of the table...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following calculations:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Contribution NOS = DIVIDE( &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sum(Sheet1[NOS]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(sum(Sheet1[NOS]), allselected(Sheet1)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Below threshold 0.15 = if([Contribution NOS] &amp;lt; 0.15,1,0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;counter = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sumx( SUMMARIZE(Sheet1, Sheet1[SKU], "below threshold", [Below threshold 0.15]), [below threshold]).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It would be really helpful if anyone can share any suggestion how this could be handled. Thank you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have used the following sample data&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Category&lt;/TD&gt;&lt;TD&gt;SKU&lt;/TD&gt;&lt;TD&gt;NOS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 14 Jul 2021 10:51:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combination-Summarized-and-ALLSELECTED-function-not-working/m-p/1957155#M42721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-14T10:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Combination Summarized and ALLSELECTED function not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combination-Summarized-and-ALLSELECTED-function-not-working/m-p/1957313#M42729</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/xantiqvvzrwuqt4/peterbeere.pbix?dl=0" target="_self"&gt;Link to the pbix file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 12:10:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combination-Summarized-and-ALLSELECTED-function-not-working/m-p/1957313#M42729</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-07-14T12:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Combination Summarized and ALLSELECTED function not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combination-Summarized-and-ALLSELECTED-function-not-working/m-p/1957614#M42749</link>
      <description>&lt;P&gt;Hi Jihwan_kim,&lt;BR /&gt;Thanks for your reply. However, it does not solve my issue. The issue that I encounter is that my counter is not working properly. It only works in the row total but it isn't able to count the number of skus below threshold per category. eg, in example1 without filters, it should result in counter = 1 for category A,B and C. and in example2, incl filter category is not A, it should give 1 only for category B&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 14:17:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combination-Summarized-and-ALLSELECTED-function-not-working/m-p/1957614#M42749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-14T14:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Combination Summarized and ALLSELECTED function not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combination-Summarized-and-ALLSELECTED-function-not-working/m-p/1960583#M42876</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I found a solution for my issue. The thing that I had to do is creating a variabe outside the summarize function. In this way, the allsellected function was not ignored anymore since it was fixed.&lt;/P&gt;&lt;P&gt;I used the following DAX formula:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Solution = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var var1 = CALCULATE(sum(Sheet1[NOS]), ALLSELECTED(Sheet1))&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;sumx( SUMMARIZE(Sheet1, Sheet1[SKU], "below threshold", &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE( &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sum(Sheet1[NOS]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt; 0.15,1,0)), [below threshold])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hopefully it will help someone that encounters a similar issue&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Jul 2021 17:57:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combination-Summarized-and-ALLSELECTED-function-not-working/m-p/1960583#M42876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T17:57:33Z</dc:date>
    </item>
  </channel>
</rss>

