<?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: Ambiguity when relating tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3086548#M107937</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="494736" data-lia-user-login="Thiagops" class="lia-mention lia-mention-user"&gt;Thiagops&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No that was just a filter that simulates a relationship&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Feb 2023 14:30:45 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-02-19T14:30:45Z</dc:date>
    <item>
      <title>Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085102#M107766</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Good morning, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to know how many customers a seller registered in the month. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have the following tables: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Calendar (Related to outgoing invoice)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Sellers (related to customers)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Customers (Related to outgoing invoice)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Exit invoice &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using data tracking to choose the seller and the month, but I believe that because the customer table is not directly related to the calendar, it doesn't work. The result is not correct. I tried to relate the calendars table with the customers, but it says that it generates ambiguity with the outgoing invoice. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using the following measure:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;New customer registration =&amp;nbsp;DISTINCTCOUNTNOBLANK('CUSTOMER (WALLET)'[CLI_CODIGO])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 14:02:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085102#M107766</guid>
      <dc:creator>Thiagops</dc:creator>
      <dc:date>2023-02-17T14:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085157#M107771</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="494736" data-lia-user-login="Thiagops" class="lia-mention lia-mention-user"&gt;Thiagops&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please provide screenshots of your data model (model view) and the visual that shows the wrong results&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 14:21:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085157#M107771</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-17T14:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085186#M107774</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Só funciona a seguimentação de dados para o vendedor.&lt;/P&gt;&lt;P&gt;A seguimentação de dados para ano e mes não funciona.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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>Fri, 17 Feb 2023 14:28:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085186#M107774</guid>
      <dc:creator>Thiagops</dc:creator>
      <dc:date>2023-02-17T14:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085274#M107790</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="494736" data-lia-user-login="Thiagops" class="lia-mention lia-mention-user"&gt;Thiagops&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;New customer registration =
CALCULATE (
    DISTINCTCOUNTNOBLANK ( 'CUSTOMER (WALLET)'[CLI_CODIGO] ),
    CROSSFILTER ( 'Calendar'[Date], 'Exit invoice'[Date], BOTH )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 Feb 2023 15:15:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085274#M107790</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-17T15:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085332#M107794</link>
      <description>&lt;P&gt;Still the same result&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 15:55:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085332#M107794</guid>
      <dc:creator>Thiagops</dc:creator>
      <dc:date>2023-02-17T15:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085334#M107795</link>
      <description>&lt;P&gt;I also tried with USERELATIONSHIP, but it didn't work&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 15:56:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085334#M107795</guid>
      <dc:creator>Thiagops</dc:creator>
      <dc:date>2023-02-17T15:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085388#M107802</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="494736" data-lia-user-login="Thiagops" class="lia-mention lia-mention-user"&gt;Thiagops&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies, that was a mistake. Please try&lt;/P&gt;
&lt;P&gt;New customer registration =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;DISTINCTCOUNTNOBLANK ( 'CUSTOMER (WALLET)'[CLI_CODIGO] ),&lt;BR /&gt;CROSSFILTER ( Customer[Customer Key], 'Exit invoice'[Customer Key], BOTH )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 16:29:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085388#M107802</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-17T16:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085490#M107809</link>
      <description>&lt;P&gt;The result has changed as the data slices change, but still the values ​​are wrong.&lt;BR /&gt;The tables CLIENTE (CARTEIRA) and NF_SAIDA (CARTEIRA) are related by column CLI_CODIGO &lt;SPAN&gt;does it interfere?&lt;BR /&gt;The code I used now was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Cadastro de NOVOS clientes2 =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;DISTINCTCOUNTNOBLANK('CLIENTE (CARTEIRA)'[CLI_CODIGO]),&lt;BR /&gt;CROSSFILTER('CLIENTE (CARTEIRA)'[CLI_CODIGO],'NF_SAIDA (CARTEIRA)'[CLI_CODIGO],Both))&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 17:28:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085490#M107809</guid>
      <dc:creator>Thiagops</dc:creator>
      <dc:date>2023-02-17T17:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085508#M107815</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="494736" data-lia-user-login="Thiagops" class="lia-mention lia-mention-user"&gt;Thiagops&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you judge that the results are wrong? However, you can simply return the same result as&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cadastro de NOVOS clientes2 =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DISTINCTCOUNTNOBLANK('NF_SAIDA (CARTEIRA)'[CLI_CODIGO])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 17:38:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085508#M107815</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-17T17:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085594#M107826</link>
      <description>&lt;P&gt;I counted directly in the table and the result should be 10 (If you filter seller X in December 2022, he registered only 10 customers). The formulas mentioned above are returning the number of customers he sold (In the case of December, it returns 31).&lt;/P&gt;&lt;P&gt;From what I understand this happens because the CALENDARIO table is filtered by the NF_SAIDA (WALLET) table. If we can find some way to relate the CALENDAR with the CLIENT (WALLET) directly, I think that solves it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 18:51:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085594#M107826</guid>
      <dc:creator>Thiagops</dc:creator>
      <dc:date>2023-02-17T18:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085831#M107848</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="494736" data-lia-user-login="Thiagops" class="lia-mention lia-mention-user"&gt;Thiagops&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are right. Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Cadastro de NOVOS clientes2 =
CALCULATE (
    DISTINCTCOUNTNOBLANK ( 'CLIENTE (CARTEIRA)'[CLI_CODIGO] ),
    'CLIENTE (CARTEIRA)'[Registration Date] IN VALUES ( CALENDARIO[Date] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 18 Feb 2023 04:57:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3085831#M107848</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-18T04:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3086531#M107933</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&amp;nbsp;thank you very much.&lt;BR /&gt;It was right. GOD reward you, you helped me a lot.&lt;/P&gt;&lt;P&gt;Does this that was done force a relationship?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 13:21:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3086531#M107933</guid>
      <dc:creator>Thiagops</dc:creator>
      <dc:date>2023-02-19T13:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguity when relating tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3086548#M107937</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="494736" data-lia-user-login="Thiagops" class="lia-mention lia-mention-user"&gt;Thiagops&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No that was just a filter that simulates a relationship&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 14:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ambiguity-when-relating-tables/m-p/3086548#M107937</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-19T14:30:45Z</dc:date>
    </item>
  </channel>
</rss>

