<?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 Please can someone help here, I am going bananas in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-can-someone-help-here-I-am-going-bananas/m-p/1615400#M32534</link>
    <description>&lt;P&gt;I have two tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) tblSelection - this only has one row of data&lt;/P&gt;&lt;P&gt;2) tblMatches - this has 4m rows of data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are joined in a one:many by a field named referenceNumber. Both tables have identical columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a column in both tables called AgeOfCompany. All I want to do is add a column to tblMatches where:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (AND(tblMatches[AgeOfCompany] &amp;gt;= tblSelection[AgeOf Company] *0.8 , tblMatches&amp;nbsp;tblMatches[AgeOfCompany] ,&amp;lt;= tblSelection[AgeOf Company] *1.2) then 1 else 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am lost as how to do this. If you can help, please do! Obviously, as they are joined, I can only get a 1 in the linked record&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 23:59:54 GMT</pubDate>
    <dc:creator>dpotta</dc:creator>
    <dc:date>2021-01-21T23:59:54Z</dc:date>
    <item>
      <title>Please can someone help here, I am going bananas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-can-someone-help-here-I-am-going-bananas/m-p/1615400#M32534</link>
      <description>&lt;P&gt;I have two tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) tblSelection - this only has one row of data&lt;/P&gt;&lt;P&gt;2) tblMatches - this has 4m rows of data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are joined in a one:many by a field named referenceNumber. Both tables have identical columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a column in both tables called AgeOfCompany. All I want to do is add a column to tblMatches where:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (AND(tblMatches[AgeOfCompany] &amp;gt;= tblSelection[AgeOf Company] *0.8 , tblMatches&amp;nbsp;tblMatches[AgeOfCompany] ,&amp;lt;= tblSelection[AgeOf Company] *1.2) then 1 else 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am lost as how to do this. If you can help, please do! Obviously, as they are joined, I can only get a 1 in the linked record&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 23:59:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-can-someone-help-here-I-am-going-bananas/m-p/1615400#M32534</guid>
      <dc:creator>dpotta</dc:creator>
      <dc:date>2021-01-21T23:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Please can someone help here, I am going bananas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-can-someone-help-here-I-am-going-bananas/m-p/1615538#M32544</link>
      <description>&lt;P&gt;I can see you are frustrated.&lt;/P&gt;
&lt;P&gt;Next time , please provide a (small) data sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The column will probably look like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ColumnS = IF 
(AND
 (tblMatches[AgeOfCompany] &amp;gt;= RELATED(tblSelection[AgeOfCompany]) *0.8 ,
  tblMatches[AgeOfCompany] &amp;lt;= RELATED(tblSelection[AgeOfCompany]) *1.2),
   1 , 0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Please test at your side.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 02:00:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Please-can-someone-help-here-I-am-going-bananas/m-p/1615538#M32544</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2021-01-22T02:00:35Z</dc:date>
    </item>
  </channel>
</rss>

