<?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: Calculation group using filter modifier looks like a bug in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3234248#M118802</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting! This is puzzling and certainly looks like a bug at first glance.&lt;/P&gt;
&lt;P&gt;I agree that we should expect the same result for (1) the measure with calc item applied, and (2) the measure with equivalent code.&lt;/P&gt;
&lt;P&gt;Also, the presence of an additional shouldn't make a difference, but it does!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm keen to test further and will post back.&lt;/P&gt;</description>
    <pubDate>Sun, 14 May 2023 12:26:23 GMT</pubDate>
    <dc:creator>OwenAuger</dc:creator>
    <dc:date>2023-05-14T12:26:23Z</dc:date>
    <item>
      <title>Calculation group using filter modifier looks like a bug</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3233037#M118700</link>
      <description>&lt;P&gt;Hi, guys,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have found a very strange calculation Percentage between the measure and Calculation Group.&lt;/P&gt;&lt;P&gt;I expected to see the same calculations using filter modifiers in Calculation Group.&lt;/P&gt;&lt;P&gt;I could not find any answer in your book about this feature in calculation group.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can you help me?Is it a Bug?&lt;/P&gt;&lt;P&gt;And if I add the measure Sales% under the action of the calculation group, then the calculations become the same.&lt;/P&gt;&lt;P&gt;How one measure can influence to another measure?It is magic.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dataset is here:&lt;SPAN&gt;&lt;A href="https://fex.net/s/9rpnlb0" target="_blank" rel="noopener"&gt;https://fex.net/s/9rpnlb0&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 15:00:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3233037#M118700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-12T15:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation group using filter modifier looks like a bug</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3234248#M118802</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting! This is puzzling and certainly looks like a bug at first glance.&lt;/P&gt;
&lt;P&gt;I agree that we should expect the same result for (1) the measure with calc item applied, and (2) the measure with equivalent code.&lt;/P&gt;
&lt;P&gt;Also, the presence of an additional shouldn't make a difference, but it does!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm keen to test further and will post back.&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2023 12:26:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3234248#M118802</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-05-14T12:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation group using filter modifier looks like a bug</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3245065#M119496</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to isolate the conditions required to reproduce this bug, so I created a very simple PBIX to demonstrate the issue (attached).&lt;/P&gt;
&lt;P&gt;To reproduce this apparent bug, I believe these are the requirements:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a calculation group with a calculation item that uses ALLSELECTED (), the simplest example being:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;CALCULATE ( SELECTEDMEASURE(), ALLSELECTED () )&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;Create a a matrix with at least two fields in the Rows field well.&lt;/LI&gt;
&lt;LI&gt;Place a measure which itself does not use ALLSELECTED in the Values field well.&lt;/LI&gt;
&lt;LI&gt;Apply the above calculation item as a filter to the matrix visual.&lt;/LI&gt;
&lt;LI&gt;Expand the rows of the matrix in a "ragged" fashion, so that some branches are expanded to lower levels than others.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The bug can be avoided by removing any of the above conditions, for example:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Expanding all branches of the matrix to the same level&lt;/LI&gt;
&lt;LI&gt;Including a measure in the matrix that does use ALLSELECTED, even in a trivial way, such as&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Sales Modified = SUM ( Sales[Sales] ) + CALCULATE ( BLANK(), ALLSELECTED () )&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Does this sound right?&lt;/P&gt;
&lt;P&gt;I intend to raise this as an issue. Let me know if you have any other thoughts &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My takeway at the moment is that it is risky to use &lt;STRONG&gt;ALLSELECTED ()&lt;/STRONG&gt; within calculation items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 01:23:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3245065#M119496</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-05-20T01:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation group using filter modifier looks like a bug</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3253235#M120084</link>
      <description>&lt;P&gt;Thank you, very interesting solution for avoiding the bug.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 12:11:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3253235#M120084</guid>
      <dc:creator>denis_Co</dc:creator>
      <dc:date>2023-05-25T12:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation group using filter modifier looks like a bug</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3834789#M149943</link>
      <description>&lt;P&gt;I ran into this bug just today and I can confirm that as of April 2024, it is still not fixed. The good news is that&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6799" data-lia-user-login="OwenAuger" class="lia-mention lia-mention-user"&gt;OwenAuger&lt;/a&gt;'s workaround also still works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very nasty issue that silently produces incorrect numbers.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 20:39:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-group-using-filter-modifier-looks-like-a-bug/m-p/3834789#M149943</guid>
      <dc:creator>QueryQueen</dc:creator>
      <dc:date>2024-04-12T20:39:53Z</dc:date>
    </item>
  </channel>
</rss>

