<?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: Measure for counting that ignores only one filter context in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3771897#M147360</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="521828" data-lia-user-login="Walter_W2022" class="lia-mention lia-mention-user"&gt;Walter_W2022&lt;/a&gt;&amp;nbsp;- I've shared a pbix file since adding REMOVEFILTERS doesn't work either&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 14:09:30 GMT</pubDate>
    <dc:creator>gitcen6</dc:creator>
    <dc:date>2024-03-18T14:09:30Z</dc:date>
    <item>
      <title>Measure for counting that ignores only one filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3754084#M146457</link>
      <description>&lt;P&gt;The below is my data model.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Competitor Count' in the below table is a measure. Formula:&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Fact Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Competitor ID]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Fact Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Competitor ID]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The 'Competitor Count' column should be showing 9 instead of 1 for all rows in the table (since there are 9 competitors total for 'Variant ID' 10004). I've tried using ALLSELECTED on&amp;nbsp;&lt;SPAN&gt;'Competitor'&lt;/SPAN&gt;&lt;SPAN&gt;[Competitor ID] also and that hasn't worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Clarification: The 'Competitor ID' column in the above visual is from the 'Competitors' dimension table, NOT the 'Fact Table'. The 'Variant ID' column in the above visual is from the 'Variants' dimension table, NOT the 'Fact Table'.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 15:04:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3754084#M146457</guid>
      <dc:creator>gitcen7</dc:creator>
      <dc:date>2024-03-11T15:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for counting that ignores only one filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3754117#M146460</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="682968" data-lia-user-login="gitcen7" class="lia-mention lia-mention-user"&gt;gitcen7&lt;/a&gt;&amp;nbsp;, I used your measure to count&amp;nbsp;&lt;SPAN&gt;[Competitor ID] and got 9 for 10004, not sure why you got 1, could you please share your pbix file for further investigate? thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 06:29:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3754117#M146460</guid>
      <dc:creator>Walter_W2022</dc:creator>
      <dc:date>2024-03-11T06:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for counting that ignores only one filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3755548#M146521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="521828" data-lia-user-login="Walter_W2022" class="lia-mention lia-mention-user"&gt;Walter_W2022&lt;/a&gt;, to clarify, the Competitor ID column in the table is from the 'Competitors' data table, NOT the 'Fact Table'.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 14:25:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3755548#M146521</guid>
      <dc:creator>gitcen7</dc:creator>
      <dc:date>2024-03-11T14:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for counting that ignores only one filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3756310#M146557</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="682968" data-lia-user-login="gitcen7" class="lia-mention lia-mention-user"&gt;gitcen7&lt;/a&gt;&amp;nbsp; in this case, you only need to add&amp;nbsp;&lt;SPAN&gt;REMOVEFILTERS, please see below&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN&gt;(DimCompetitorID[Competitor ID]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 21:33:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3756310#M146557</guid>
      <dc:creator>Walter_W2022</dc:creator>
      <dc:date>2024-03-11T21:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for counting that ignores only one filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3770021#M147237</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/file/d/12J5J1io3k-lvwgdf5X33AMGK-sFwol8l/view?usp=drive_link" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/12J5J1io3k-lvwgdf5X33AMGK-sFwol8l/view?usp=drive_link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="521828" data-lia-user-login="Walter_W2022" class="lia-mention lia-mention-user"&gt;Walter_W2022&lt;/a&gt;&amp;nbsp;- apologies for the delayed response. See the link for an example pbix file.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 04:40:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3770021#M147237</guid>
      <dc:creator>gitcen6</dc:creator>
      <dc:date>2024-03-18T04:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for counting that ignores only one filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3771897#M147360</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="521828" data-lia-user-login="Walter_W2022" class="lia-mention lia-mention-user"&gt;Walter_W2022&lt;/a&gt;&amp;nbsp;- I've shared a pbix file since adding REMOVEFILTERS doesn't work either&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 14:09:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3771897#M147360</guid>
      <dc:creator>gitcen6</dc:creator>
      <dc:date>2024-03-18T14:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for counting that ignores only one filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3772027#M147370</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need the "ALL" on the dimension, otherwise it will keep filtering the fact. Adding the "IF" to prevent returning rows for Competitor/Variant combinations that do not exist.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 15:10:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3772027#M147370</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-03-18T15:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for counting that ignores only one filter context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3817148#M149287</link>
      <description>&lt;P&gt;This worked for me, thank you very much!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 21:38:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-counting-that-ignores-only-one-filter-context/m-p/3817148#M149287</guid>
      <dc:creator>gitcen7</dc:creator>
      <dc:date>2024-04-07T21:38:47Z</dc:date>
    </item>
  </channel>
</rss>

