<?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: Need help with DAX code that includes only specific values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750093#M181886</link>
    <description>&lt;P&gt;Can you please paste here some example of the table so we can reproduce the error? So we can import in Power BI and help you&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jul 2025 18:31:48 GMT</pubDate>
    <dc:creator>FBergamaschi</dc:creator>
    <dc:date>2025-07-01T18:31:48Z</dc:date>
    <item>
      <title>Need help with DAX code that includes only specific values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750079#M181883</link>
      <description>&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dashboard that includes a bar chart and line chart that compares data from one organization versus the total of all the&amp;nbsp; organizations in the region. I need the regional data to not be affected by any other filters with one exception - specfic values in the classification column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my DAX code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regional Measure =&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'AllData'&lt;/SPAN&gt;&lt;SPAN&gt;[TotalInquiries]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'AllData'&lt;/SPAN&gt;&lt;SPAN&gt;[Organization]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'AllData'&lt;/SPAN&gt;&lt;SPAN&gt;[Classification]&lt;/SPAN&gt; &lt;SPAN&gt;IN&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;"Class II"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Class III"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Class IV"&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I use this code, it includes all classifications instead of just the ones I listed above. How can I get this to work?&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Jul 2025 18:22:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750079#M181883</guid>
      <dc:creator>FarquharG</dc:creator>
      <dc:date>2025-07-01T18:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code that includes only specific values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750090#M181885</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329433" data-lia-user-login="FarquharG" class="lia-mention lia-mention-user"&gt;FarquharG&lt;/a&gt;&amp;nbsp;Try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Regional Measure =
  VAR __Table = FILTER( ALL( 'AllData' ), [Classification] IN {"Class II", "Class III", "Class IV" )
  VAR __Result = SUMX( __Table, [TotalInquiries] )
RETURN
  __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Jul 2025 18:29:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750090#M181885</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-07-01T18:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code that includes only specific values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750093#M181886</link>
      <description>&lt;P&gt;Can you please paste here some example of the table so we can reproduce the error? So we can import in Power BI and help you&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 18:31:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750093#M181886</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-07-01T18:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code that includes only specific values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750112#M181888</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a "}" at the end of the first VAR line after "Class IV" because it was giving me an error.&amp;nbsp;When I attempted the code, my regional numbers disappeared from the visuals.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 19:08:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750112#M181888</guid>
      <dc:creator>FarquharG</dc:creator>
      <dc:date>2025-07-01T19:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code that includes only specific values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750624#M181902</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329433" data-lia-user-login="FarquharG" class="lia-mention lia-mention-user"&gt;FarquharG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please provide sample data that covers your issue or question&amp;nbsp;&lt;STRONG&gt;completely&lt;/STRONG&gt;, in a&amp;nbsp;&lt;STRONG&gt;usable&lt;/STRONG&gt;&amp;nbsp;format (not as a screenshot).&lt;/P&gt;
&lt;P&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question.&lt;/P&gt;
&lt;P&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 07:30:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4750624#M181902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-07-02T07:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code that includes only specific values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4754865#M182057</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329433" data-lia-user-login="FarquharG" class="lia-mention lia-mention-user"&gt;FarquharG&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;May I check if this issue has been resolved? If not, could you please share some sample data so we can investigate further and provide more targeted assistance.&lt;BR /&gt;&lt;/SPAN&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 08:51:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4754865#M182057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-07-07T08:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code that includes only specific values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4755345#M182069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329433" data-lia-user-login="FarquharG" class="lia-mention lia-mention-user"&gt;FarquharG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Regional Measure = 
CALCULATE(
    SUM('AllData'[TotalInquiries]),
    ALL('AllData'[Organization]),
    FILTER(
        ALL('AllData'[Classification]),
        'AllData'[Classification] IN {"Class II", "Class III", "Class IV"}
    )
)
&lt;/LI-CODE&gt;
&lt;P data-pm-slice="0 0 []"&gt;This version removes filters on Organization but only allows Class II, III, and IV to pass through in the Classification column. It ensures that your regional measure stays unaffected by organization-level filters but still respects specific classifications—exactly as intended in your use case.&lt;/P&gt;
&lt;P data-pm-slice="0 0 []"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 12:36:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4755345#M182069</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2025-07-07T12:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code that includes only specific values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4758890#M182236</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329433" data-lia-user-login="FarquharG" class="lia-mention lia-mention-user"&gt;FarquharG&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As we haven’t heard back from you, we wanted to kindly follow up to check the status of your issue, if it is still unresolved, Kindly share some sample data so that we can take a closer look and try to assist you further&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 12:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4758890#M182236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-07-10T12:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX code that includes only specific values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4760348#M182283</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="329433" data-lia-user-login="FarquharG" class="lia-mention lia-mention-user"&gt;FarquharG&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the community members for the issue worked. If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 18:25:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-code-that-includes-only-specific-values/m-p/4760348#M182283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-07-11T18:25:33Z</dc:date>
    </item>
  </channel>
</rss>

