<?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: Check if a value exists in a table given several conditions and given there's no table relationship in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1126989#M16645</link>
    <description>In fact, the opposite is true - Power Query is more powerful than DAX with respect to data mashup (and data mashup is what you ask for).&lt;BR /&gt;&lt;BR /&gt;If you give me some good sample sets (text form), I'll create the M script for you. M is the language that Power Query uses.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
    <pubDate>Thu, 28 May 2020 15:13:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-28T15:13:54Z</dc:date>
    <item>
      <title>Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1118158#M16408</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three tables (A, B and C) and due to none unique values in the three tables, no relationship has been created in between these tables. Given certain conditions, I have to check if there exists a value in table B which is equal to a value in table C (and return Yes or No in table A depending on the result). In details:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Conditions:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Type (Table A) = "To be verified"&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Start date (Table A) &amp;gt;= End date (Table C) or Start date (Table A) &amp;lt;= End date (Table C)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Name of employee (Table B) = Name of employee (Table C)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ID (Table A) = ID (Table B)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the above conditions are met, return Yes else return No.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 16:20:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1118158#M16408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-25T16:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1118186#M16413</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;You need to use LOOKUPVALUE or MAXX(FILTER(...),...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is not specific enough,&amp;nbsp;please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, 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;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 16:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1118186#M16413</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-25T16:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1120582#M16499</link>
      <description>Unfortunately, your answer doesn't help...</description>
      <pubDate>Tue, 26 May 2020 16:16:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1120582#M16499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-26T16:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1120595#M16501</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you pls share some sample Data in text format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;HN&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 16:23:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1120595#M16501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-26T16:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1121095#M16530</link>
      <description>Anonymous&lt;/LI-USER&gt;, you have to show us sample data and what you want to do. Your initial description is not clear enough, unfortunately.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Tue, 26 May 2020 22:35:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1121095#M16530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-26T22:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1123464#M16584</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed I should have shown some data. To make it simple, I have reduced to two tables : A and B. Furthermore, I have written, at the end, the "logic" I want to apply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A shows proposals received by a company for different temporary jobs. Each job has its own reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Candidate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Reference 1.0&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Start date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Recruiter&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Title of the job&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;Z65-1&lt;/TD&gt;&lt;TD&gt;28/02/2020&lt;/TD&gt;&lt;TD&gt;Arthur&lt;/TD&gt;&lt;TD&gt;BI analyst&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;X14-1&lt;/TD&gt;&lt;TD&gt;01/03/2020&lt;/TD&gt;&lt;TD&gt;James&lt;/TD&gt;&lt;TD&gt;Dev JAVA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;W&lt;/TD&gt;&lt;TD&gt;Z65-1&lt;/TD&gt;&lt;TD&gt;28/02/2020&lt;/TD&gt;&lt;TD&gt;Arthur&lt;/TD&gt;&lt;TD&gt;BI analyst&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table B shows information regarding past temporary jobs, for example: the start and end date, the job's reference and the person employed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Reference 2.0&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Start date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;End date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Title of the job&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Employee&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A47-1&lt;/TD&gt;&lt;TD&gt;01/01/2020&lt;/TD&gt;&lt;TD&gt;28/02/2020&lt;/TD&gt;&lt;TD&gt;Dev JAVA&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D69-1&lt;/TD&gt;&lt;TD&gt;01/10/2019&lt;/TD&gt;&lt;TD&gt;31/04/2020&lt;/TD&gt;&lt;TD&gt;BI analyst&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;B had a contract which ended on the 28th of February and make a proposal for another contract for the same job starting on the 1st of March. In other words, here we are talking about contract renewals. Depending on certain conditions, I want to be able to say that an employee's contract has been renewed for a job or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conditions to be met in order to tell if the contract is new or concerns a renewal:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) The start date of the job must be maximum 60 days after the end date of the previous contract&lt;/P&gt;&lt;P&gt;2) Candidate = Employee&lt;/P&gt;&lt;P&gt;3) Title of the job (table A) = Title of the job (table B)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For information :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Reference 1.0 is not the same as reference 2.0&lt;/P&gt;&lt;P&gt;2) The date condition is really important&lt;/P&gt;&lt;P&gt;3) No relationship has been able to be created between these two tables that no unique values exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 May 2020 13:49:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1123464#M16584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-27T13:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1123832#M16593</link>
      <description>That's of course doable in DAX... but it's really a job that should be performed in Power Query. Why don't you do it in PQ then?&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 27 May 2020 16:06:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1123832#M16593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-27T16:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1125706#M16627</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer. I'm not really familiar with M/Power Query and I think that there may be some limitations using Power Query instead of DAX for lookup or maybe I'm wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that something like this would have worked if there were relationships between the tables :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Condition = IF(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;'Table A'[Candidate]= RELATED('Table B';'Table B'[Employee]) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;LEFT('Table A'[Title of the job];15) = LEFT(RELATED('Table B';'Table B'[Title of the job]);15) &amp;amp;&amp;amp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;'Table A'[Start Date].[Date] &amp;gt;= RELATED(' Table B';'Table B'[End Date].[Date]) - 60);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;"Possible prolongation";&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;"Nouveau AO")&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 May 2020 10:17:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1125706#M16627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-28T10:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1126989#M16645</link>
      <description>In fact, the opposite is true - Power Query is more powerful than DAX with respect to data mashup (and data mashup is what you ask for).&lt;BR /&gt;&lt;BR /&gt;If you give me some good sample sets (text form), I'll create the M script for you. M is the language that Power Query uses.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Thu, 28 May 2020 15:13:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1126989#M16645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-28T15:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1127008#M16648</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;, the sample given above isn't enough ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 15:21:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1127008#M16648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-28T15:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a table given several conditions and given there's no table relationship</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1130073#M16736</link>
      <description>The sample you've given above is a bit small and I don't think it covers most of the issues you could encounter in sets like these. Please supply some representative samples.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Fri, 29 May 2020 19:24:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-a-value-exists-in-a-table-given-several-conditions-and/m-p/1130073#M16736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-29T19:24:16Z</dc:date>
    </item>
  </channel>
</rss>

