<?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: Userelationship not working between fact tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1834166#M39026</link>
    <description>&lt;P&gt;The direction of the relationship between&amp;nbsp;RESERVA_INVESTIMENTO and&amp;nbsp;WALLET_OPERACOES is the reason you get the same value for Measure in every row of your visual.&amp;nbsp;&amp;nbsp;WALLET_OPERACOES doesn't filter&amp;nbsp;RESERVA_INVESTIMENTO so you get the total amount of&amp;nbsp;SUM('RESERVA_INVESTIMENTO'[VALUE]).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you say, you're using&amp;nbsp;RESERVA_INVESTIMENTO&amp;nbsp; as a dimension for&amp;nbsp;WALLET_OPERACOES, but then your measure is summing an amount on the dimension table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could potentially set the relationship direction to Both, but be careful as this can cause problems.&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 16:45:26 GMT</pubDate>
    <dc:creator>PaulOlding</dc:creator>
    <dc:date>2021-05-10T16:45:26Z</dc:date>
    <item>
      <title>Userelationship not working between fact tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1833700#M39004</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've got the following scheme, where the tables RESERVA_INVESTIMENTO and WALLET_OPERACOES are both fact tables. However, it is possible to use RESERVA as a dimension table for WALLET.&lt;BR /&gt;The relationship is inactive because it causes ambiguity between the relationships marked with a cross.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But when I use a formula like this, for example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE(SUM('RESERVA_INVESTIMENTO'[VALUE]),
   USERELATIONSHIP(
      'RESERVA_INVESTIMENTO'[ID_RESERVA],
      'WALLET_OPERACOES'[ID_RESERVA]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I get a report like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make this work?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 12:40:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1833700#M39004</guid>
      <dc:creator>dgurgel</dc:creator>
      <dc:date>2021-05-10T12:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship not working between fact tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1833744#M39007</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="301076" data-lia-user-login="dgurgel" class="lia-mention lia-mention-user"&gt;dgurgel&lt;/a&gt; , USERELATIONSHIP is to activate inactive between a set active/inactive.&lt;/P&gt;
&lt;P&gt;First of check why this relationship is inactive ?&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 13:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1833744#M39007</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-10T13:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship not working between fact tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1833991#M39022</link>
      <description>&lt;P&gt;It's inactive because it would cause ambiguity between the other dimensions relationships, that are feed both fact tables.&amp;nbsp; These need to be inactive for the circled relation to be active.&lt;BR /&gt;INVESTIDORES -&amp;gt; WALLET_OPERACOES&lt;BR /&gt;DimCalendario -&amp;gt; WALLET_OPERACOES&lt;BR /&gt;SOLICITACAO -&amp;gt; WALLET_OPERACOES&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 15:09:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1833991#M39022</guid>
      <dc:creator>dgurgel</dc:creator>
      <dc:date>2021-05-10T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship not working between fact tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1834166#M39026</link>
      <description>&lt;P&gt;The direction of the relationship between&amp;nbsp;RESERVA_INVESTIMENTO and&amp;nbsp;WALLET_OPERACOES is the reason you get the same value for Measure in every row of your visual.&amp;nbsp;&amp;nbsp;WALLET_OPERACOES doesn't filter&amp;nbsp;RESERVA_INVESTIMENTO so you get the total amount of&amp;nbsp;SUM('RESERVA_INVESTIMENTO'[VALUE]).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you say, you're using&amp;nbsp;RESERVA_INVESTIMENTO&amp;nbsp; as a dimension for&amp;nbsp;WALLET_OPERACOES, but then your measure is summing an amount on the dimension table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could potentially set the relationship direction to Both, but be careful as this can cause problems.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 16:45:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1834166#M39026</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-05-10T16:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship not working between fact tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1834231#M39029</link>
      <description>&lt;P&gt;I'll give you the best piece of advice you could get in this world with this model: CHANGE THE MODEL since it's simply incorrect and rather sooner than later you'll be sorry you have not taken this advice seriously (in case you don't).&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 17:23:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-not-working-between-fact-tables/m-p/1834231#M39029</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2021-05-10T17:23:55Z</dc:date>
    </item>
  </channel>
</rss>

