<?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 Unique Distinct Count of Policy Numbers dependent on Other Column Criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3480788#M133056</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am fairly new to Power BI and DAX. I am currently trying to move a report from Qlikview to Power BI and one of the formulas I need to replicate uses qlikview functions P() &amp;amp; E() that dont seem to be available in Power BI but i am sure DAX could replicate in some way. I have spent some time looking on this forum but any answers that seem to tackle the issue dont work when I apply them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example below i have a list of policy numbers and products and i only want to count the products where they exist on their own. E.g. I want the count of policy numbers for the Product called ISA where the corresponding policy number doesnt have another Product attached to it. The number of ISAs in the list below is 4 but the result i want based on the criteria above is 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we were to replicate this for the Product SIPP then the number of SIPPs in the list is 5 but the result i want is 3.&lt;/P&gt;&lt;P&gt;If again we were to replicate this for the Product Cash then the number of Cash in the list is 3 but the result i want is 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have colour coded what needs to be counted with the results in the same colour&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone one have a DAX formula that would do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 09:39:43 GMT</pubDate>
    <dc:creator>Mikey575</dc:creator>
    <dc:date>2023-10-17T09:39:43Z</dc:date>
    <item>
      <title>Unique Distinct Count of Policy Numbers dependent on Other Column Criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3480788#M133056</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am fairly new to Power BI and DAX. I am currently trying to move a report from Qlikview to Power BI and one of the formulas I need to replicate uses qlikview functions P() &amp;amp; E() that dont seem to be available in Power BI but i am sure DAX could replicate in some way. I have spent some time looking on this forum but any answers that seem to tackle the issue dont work when I apply them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example below i have a list of policy numbers and products and i only want to count the products where they exist on their own. E.g. I want the count of policy numbers for the Product called ISA where the corresponding policy number doesnt have another Product attached to it. The number of ISAs in the list below is 4 but the result i want based on the criteria above is 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we were to replicate this for the Product SIPP then the number of SIPPs in the list is 5 but the result i want is 3.&lt;/P&gt;&lt;P&gt;If again we were to replicate this for the Product Cash then the number of Cash in the list is 3 but the result i want is 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have colour coded what needs to be counted with the results in the same colour&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone one have a DAX formula that would do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 09:39:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3480788#M133056</guid>
      <dc:creator>Mikey575</dc:creator>
      <dc:date>2023-10-17T09:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Distinct Count of Policy Numbers dependent on Other Column Criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3481087#M133081</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="612208" data-lia-user-login="Mikey575" class="lia-mention lia-mention-user"&gt;Mikey575&lt;/a&gt;&amp;nbsp; try it measure&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Product_count = 
VAR coun = 
ADDCOLUMNS(
    'table', "counta", 
    CALCULATE( 
        COUNT([Policy Number]), 
        FILTER( ALL('table'), [Policy Number] = EARLIER([Policy Number])
        )
    )
)
VAR result = CALCULATE( COUNT('table'[Product]), FILTER( coun, [counta] = 1))
return
result&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 12:48:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3481087#M133081</guid>
      <dc:creator>DimaMD</dc:creator>
      <dc:date>2023-10-17T12:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Distinct Count of Policy Numbers dependent on Other Column Criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3481199#M133091</link>
      <description>&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312820" data-lia-user-login="DimaMD" class="lia-mention lia-mention-user"&gt;DimaMD&lt;/a&gt;&amp;nbsp;how would I code it so I isolate just 1 product, say ISA?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 13:46:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3481199#M133091</guid>
      <dc:creator>Mikey575</dc:creator>
      <dc:date>2023-10-17T13:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Distinct Count of Policy Numbers dependent on Other Column Criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3482640#M133194</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="612208" data-lia-user-login="Mikey575" class="lia-mention lia-mention-user"&gt;Mikey575&lt;/a&gt;&amp;nbsp; Hi,&amp;nbsp;Specify your question, what exactly do you want to see?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 07:51:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3482640#M133194</guid>
      <dc:creator>DimaMD</dc:creator>
      <dc:date>2023-10-18T07:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Distinct Count of Policy Numbers dependent on Other Column Criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3482714#M133197</link>
      <description>&lt;P&gt;Hi DimaMD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So your solution brings back the correct result. However i would like to modify it so it only brings back the Count for the Product ISA. See Below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 08:21:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3482714#M133197</guid>
      <dc:creator>Mikey575</dc:creator>
      <dc:date>2023-10-18T08:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Distinct Count of Policy Numbers dependent on Other Column Criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3483252#M133229</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="612208" data-lia-user-login="Mikey575" class="lia-mention lia-mention-user"&gt;Mikey575&lt;/a&gt;&amp;nbsp;You have two options to add a slicer with products or to add filtering by product&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In my opinion, it is better to add a slicer to the report and you will be able to see the quantity for any product&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 12:19:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Distinct-Count-of-Policy-Numbers-dependent-on-Other/m-p/3483252#M133229</guid>
      <dc:creator>DimaMD</dc:creator>
      <dc:date>2023-10-18T12:19:49Z</dc:date>
    </item>
  </channel>
</rss>

