<?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: Problems with row/filter context in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-row-filter-context/m-p/4422602#M175570</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="936438" data-lia-user-login="AndreaBracco" class="lia-mention lia-mention-user"&gt;AndreaBracco&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please &lt;U&gt;provide sample data that &lt;STRONG&gt;fully&lt;/STRONG&gt; represents your issue or question in a &lt;STRONG&gt;usable format&lt;/STRONG&gt;&lt;/U&gt;, rather than a screenshot? Ensure the dataset is anonymized and does not contain any sensitive or unrelated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, it would be very helpful if you could &lt;U&gt;share the &lt;STRONG&gt;expected outcome&lt;/STRONG&gt; based on the provided data&lt;/U&gt; - this can be in any format, including a screenshot. Having a clear reference for comparison will significantly improve the chances of getting the correct solution in the first response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For best practices, you may find the following links useful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;Need help uploading data?&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;Want faster answers?&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="color: #033f38;"&gt;Proud to be a Super User&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2025 19:17:23 GMT</pubDate>
    <dc:creator>quantumudit</dc:creator>
    <dc:date>2025-02-21T19:17:23Z</dc:date>
    <item>
      <title>Problems with row/filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-row-filter-context/m-p/4421979#M175560</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am quite new to Power BI and I have the following issue. I have the following visual, where the column "Check_Global" is actually a measure.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure is computed as follows.&lt;/P&gt;&lt;DIV&gt;&l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PAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;blank&lt;/SPAN&gt;&lt;SPAN&gt;() )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;My question is: why is not the total equal to the column sum? In this example, I aspected to get 12.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Basically, the&amp;nbsp;Check_Global should tell me how many days have corrupted data.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;I think it is related to row\filter context, but I am very confused about it...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;And, as follows, I report another issue I think always related to row\filter context.&lt;BR /&gt;In the following matrix, the measure "CB" is showed by ID and Month.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&lt;SPAN&gt;As you can see, ID totals are corrected but month totals no!&lt;BR /&gt;Please not that this calculation is very complex, so the ID sum could be not equal to the monthly sum...however it is useful to have a graphical representation of the monthly data. Instead, the sum over all ID for each month should be the exact sum!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The measure is computed as follows.&lt;/SPAN&gt;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I humbly ask your help!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Feb 2025 13:17:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-row-filter-context/m-p/4421979#M175560</guid>
      <dc:creator>AndreaBracco</dc:creator>
      <dc:date>2025-02-21T13:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with row/filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-row-filter-context/m-p/4422602#M175570</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="936438" data-lia-user-login="AndreaBracco" class="lia-mention lia-mention-user"&gt;AndreaBracco&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please &lt;U&gt;provide sample data that &lt;STRONG&gt;fully&lt;/STRONG&gt; represents your issue or question in a &lt;STRONG&gt;usable format&lt;/STRONG&gt;&lt;/U&gt;, rather than a screenshot? Ensure the dataset is anonymized and does not contain any sensitive or unrelated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, it would be very helpful if you could &lt;U&gt;share the &lt;STRONG&gt;expected outcome&lt;/STRONG&gt; based on the provided data&lt;/U&gt; - this can be in any format, including a screenshot. Having a clear reference for comparison will significantly improve the chances of getting the correct solution in the first response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For best practices, you may find the following links useful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;Need help uploading data?&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank" rel="noopener"&gt;Want faster answers?&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="color: #033f38;"&gt;Proud to be a Super User&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 19:17:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-row-filter-context/m-p/4422602#M175570</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2025-02-21T19:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with row/filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-row-filter-context/m-p/4422885#M175581</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but please try something like below whether it works.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Check_Global =
SUMX (
    VALUES ( calendar_table[date_column] ),
    CALCULATE (
        IF (
            OR (
                SUMX ( 'CHP Units', 'CHP Units'[Check_Hours] ) &amp;gt; 0,
                SUMX ( 'CHP Units', 'CHP Units'[Check_EE] ) &amp;gt; 0
            ),
            1,
            BLANK ()
        )
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 22 Feb 2025 05:37:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-row-filter-context/m-p/4422885#M175581</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-02-22T05:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with row/filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-row-filter-context/m-p/4589827#M175804</link>
      <description>&lt;P&gt;Hi, it worked perfectly. Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 10:47:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-row-filter-context/m-p/4589827#M175804</guid>
      <dc:creator>AndreaBracco</dc:creator>
      <dc:date>2025-02-28T10:47:26Z</dc:date>
    </item>
  </channel>
</rss>

