<?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: Column used in measure and Used in table as well in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1082902#M15374</link>
    <description>&lt;P&gt;I don't think it is the USERELATIONSHIP().&amp;nbsp; Since you have added the column to your visual that you were filtering on in the measure, have you tried the simpler measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Amount = Sum(Fact2[Amount])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at your model, the filter should propagate from your Dim table to the Fact2 table.&amp;nbsp; I would discourage bi-di relationships, but this should work in your model.&amp;nbsp; If you have a 1:1 between Fact1 and Fact2 I would consider merging them in query editor to simplify things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
    <pubDate>Sun, 10 May 2020 17:33:04 GMT</pubDate>
    <dc:creator>mahoneypat</dc:creator>
    <dc:date>2020-05-10T17:33:04Z</dc:date>
    <item>
      <title>Column used in measure and Used in table as well</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1079829#M15208</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some trouble with Dax &amp;amp; Power BI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I' using a column as a filter in a Measure :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total_Amount = CALCULATE(SUM(Table[amount]);Dimension[Filter_Column]="Primary Cost")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The when I'm adding the measure to the Table Visual, everythink was OK :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Untill I added the Filter_column to the visual and everything is &lt;STRONG&gt;wrong&lt;/STRONG&gt; except the TOTAL of the table visual :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's any solution for this??&lt;/P&gt;&lt;P&gt;Is this a bug Dax or it's working like that in Power BI?&lt;/P&gt;&lt;P&gt;Thanks a lot for your responses&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 17:44:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1079829#M15208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-07T17:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Column used in measure and Used in table as well</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1080365#M15235</link>
      <description>&lt;P&gt;That is the behavior of DAX.&amp;nbsp; The filter in the calculate is overriding the filter from the visual if on the same column (hence all the same values).&amp;nbsp; You could just simplify your measure back to Sum(Table[Amount]) since your visual is doing the filtering now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 01:44:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1080365#M15235</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-05-08T01:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Column used in measure and Used in table as well</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1082781#M15370</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226208" data-lia-user-login="mahoneypat" class="lia-mention lia-mention-user"&gt;mahoneypat&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the probleme is about the use of the&amp;nbsp;USERELATIONSHIP&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Total_Amount =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUM (Fact2[Amount] );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DATESYTD( 'Date_Table'[Date] );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FILTER ( Dimension; Dimension[Filter_Column] = "Physical");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USERELATIONSHIP ( Fact2[ID]; Fact1[ID] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&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:02:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1082781#M15370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-10T13:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Column used in measure and Used in table as well</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1082902#M15374</link>
      <description>&lt;P&gt;I don't think it is the USERELATIONSHIP().&amp;nbsp; Since you have added the column to your visual that you were filtering on in the measure, have you tried the simpler measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Amount = Sum(Fact2[Amount])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at your model, the filter should propagate from your Dim table to the Fact2 table.&amp;nbsp; I would discourage bi-di relationships, but this should work in your model.&amp;nbsp; If you have a 1:1 between Fact1 and Fact2 I would consider merging them in query editor to simplify things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 17:33:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1082902#M15374</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-05-10T17:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Column used in measure and Used in table as well</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1082964#M15377</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, your measure must be written like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total_Amount =
	CALCULATE ( 
		SUM ( Table[amount] ),
		KEEPFILTERS( 
			Dimension[Filter_Column] = "Primary Cost"
		)
	)&lt;/LI-CODE&gt;
&lt;P&gt;Secondly, please NEVER, EVER join 2 fact tables directly to each other. Unless you want to suffer and re-build your model from scratch later on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 19:39:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-used-in-measure-and-Used-in-table-as-well/m-p/1082964#M15377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-10T19:39:41Z</dc:date>
    </item>
  </channel>
</rss>

