<?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 wrong result with a used column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1082562#M15356</link>
    <description>&lt;P&gt;Difficult to say what the problem is with the information provided.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 09 May 2020 23:53:42 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-05-09T23:53:42Z</dc:date>
    <item>
      <title>Userelationship wrong result with a used column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1082419#M15341</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have issues with Userelationship function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact I have two measures :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total_Amount_Direct =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM (Fact1[money] );&lt;BR /&gt;DATESYTD( 'Date_Table'[Date] );&lt;BR /&gt;FILTER ( Dimension; Dimension[Filter_Column] = "Physical")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total_Amount_UserRelationShip =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM (Fact2[Amount] );&lt;BR /&gt;DATESYTD( 'Date_Table'[Date] );&lt;BR /&gt;FILTER ( Dimension; Dimension[Filter_Column] = "Physical");&lt;BR /&gt;USERELATIONSHIP ( Fact2[ID]; Fact1[ID] )&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;This is the result :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I add the Filter Column to the table everything come wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the effect of the USERELATIONSHIP Function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add new Dimension ( copy of the existing Dimensio) to filter the table and have the good result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 18:11:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1082419#M15341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-09T18:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship wrong result with a used column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1082562#M15356</link>
      <description>&lt;P&gt;Difficult to say what the problem is with the information provided.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 23:53:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1082562#M15356</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-09T23:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship wrong result with a used column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1082779#M15369</link>
      <description>&lt;P&gt;Hello Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my Schema :&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;I think when we want to across the dimension column returned from the USERELATIONSHIP then I cant see nothing as result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's a DAX Logic&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 13:00:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1082779#M15369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-10T13:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship wrong result with a used column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1082966#M15378</link>
      <description>Repeating myself... Please never, ever, ever join 2 fact table directly to each other. This is one of the worst things you can do in data modeling. Please use the correct design patterns unless you want to suffer in the future. 2 fact tables must always be joined to common (conformed) dimensions and slicing can ONLY be performed via the attributes of the dimensions, never directly on the columns of the fact tables.&lt;BR /&gt;&lt;BR /&gt;If you deflect from this golden rule, you'll very soon start creating numbers nobody will be able to understand, including you.&lt;BR /&gt;&lt;BR /&gt;There are plenty of vids on YT that explain how to build correct models. Please watch them before you shoot yourself in the foot.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Sun, 10 May 2020 19:45:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1082966#M15378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-10T19:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Userelationship wrong result with a used column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1084499#M15438</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relation betwee my Fact tables is 1..1&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact I solve it but it looks strange :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 measures :&lt;/P&gt;&lt;P&gt;Total_Amount =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( 'Fact1'[Amount] );&lt;BR /&gt;DATESYTD ( 'Date'[Date] );&lt;BR /&gt;FILTER (Dimension; LEFT ( Dimension[Filter_Column]; 1 ) &amp;lt;&amp;gt; "5")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Total_Amount1 =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( 'Fact'[Amount] );&lt;BR /&gt;DATESYTD ( 'Date'[Date] );&lt;BR /&gt;FILTER (Dimension; LEFT ( Dimension[Filter_Column]; 1 ) &amp;lt;&amp;gt; "5");&lt;BR /&gt;USERELATIONSHIP ( 'Fact1'[ID]; 'Fact2'[ID] )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Total_Amount2 =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( 'Fact'[Amount] );&lt;BR /&gt;DATESYTD ( 'Date'[Date] );&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;Dimension;&lt;BR /&gt;Dimension[Dim_ID];&lt;BR /&gt;Dimension[Filter_Column]&lt;BR /&gt;);&lt;BR /&gt;FILTER ( Dimension; LEFT ( Dimension[Filter_Column]; 1 ) &amp;lt;&amp;gt; "5" )&lt;BR /&gt;);&lt;BR /&gt;USERELATIONSHIP ( 'Fact1'[ID]; 'Fact2'[ID] )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relation between Fact1 and Fact2&lt;/P&gt;&lt;P&gt;1..*&lt;/P&gt;&lt;P&gt;Relation between Fact1 and Dimension&lt;/P&gt;&lt;P&gt;*..1&lt;/P&gt;&lt;P&gt;Column 1 and Column 2 are from Fact1 Table&lt;/P&gt;&lt;P&gt;There is no relation betwenn Fact 2 and Dimension .&lt;BR /&gt;There is no relation between Fact2 and Column 1 and Column 2 (we need to use the USERELATIONSHIP )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The result is ok for the third measure using the CalculateTable, but I didn't Understand why the second Measure did not work !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can Someone explain to me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 16:49:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Userelationship-wrong-result-with-a-used-column/m-p/1084499#M15438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-11T16:49:28Z</dc:date>
    </item>
  </channel>
</rss>

