<?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: Identify by cart distinct value in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Identify-by-cart-distinct-value/m-p/2268262#M33768</link>
    <description>&lt;P&gt;Is the data all coming from the same table or from multiple tables? Are these tables linked in a data model?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 22:59:53 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2022-01-05T22:59:53Z</dc:date>
    <item>
      <title>Identify by cart distinct value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Identify-by-cart-distinct-value/m-p/2266590#M33755</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first ever post on a forum so if I don't respect a rule please forgive me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY issues is that I have a listing of supplier (identifiy by a unique code) that work with 4 business unit (let's call them Pole 1/2/3...)&lt;/P&gt;&lt;P&gt;What I'm trying to do is to identify how many supplier is working only with one business unit (pole 1 or 2 or 3) through the card&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my ExCo when they select for example Business Unit "Pole 1" I'd like the cart to change accordingly to number of suppliers that only belongs to them&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;&lt;P&gt;Sorry if I'm not clear I can send you more details on request !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and have a good day&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 04:42:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Identify-by-cart-distinct-value/m-p/2266590#M33755</guid>
      <dc:creator>NicoData1</dc:creator>
      <dc:date>2022-01-05T04:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Identify by cart distinct value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Identify-by-cart-distinct-value/m-p/2268262#M33768</link>
      <description>&lt;P&gt;Is the data all coming from the same table or from multiple tables? Are these tables linked in a data model?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 22:59:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Identify-by-cart-distinct-value/m-p/2268262#M33768</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-01-05T22:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Identify by cart distinct value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Identify-by-cart-distinct-value/m-p/2274322#M33811</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349513" data-lia-user-login="NicoData1" class="lia-mention lia-mention-user"&gt;NicoData1&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Can you please share a pbix or some dummy data that keep raw data structure with expected results? It will help us clarify your scenario and test to coding formula.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, you can also take a look at the following measure formula if helps:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DC_PCount =
VAR dcSupplier =
    SELECTCOLUMNS (
        FILTER (
            SUMMARIZE (
                ALL ( Table ),
                Table[SupplierCode],
                "PoleCount", COUNTROWS ( VALUES ( Table[SupplierCode] ) )
            ),
            [PoleCount] = 1
        ),
        "SupplierCode", [SupplierCode]
    )
VAR currList =
    CALCULATETABLE ( VALUES ( Table[SupplierCode] ), ALLSELECTED ( Table ) )
RETURN
    COUNTROWS ( INTERSECT ( currList, dcSupplier ) )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 01:39:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Identify-by-cart-distinct-value/m-p/2274322#M33811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-10T01:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Identify by cart distinct value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Identify-by-cart-distinct-value/m-p/2280841#M33861</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks it worked !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have a great day&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 05:53:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Identify-by-cart-distinct-value/m-p/2280841#M33861</guid>
      <dc:creator>NicoData1</dc:creator>
      <dc:date>2022-01-13T05:53:23Z</dc:date>
    </item>
  </channel>
</rss>

