<?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 Measure  that checks if values from table is equal to another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-checks-if-values-from-table-is-equal-to-another/m-p/2301855#M56869</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem that I cant seem to figure out how to solve, have been browsing through this forum and I cant find anything that works for me&lt;/P&gt;&lt;P&gt;I want to create a measure "X" that gives me 1 or 0 depending if two conditions are met&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a "Letter Code" which is from Table1, "Type" &amp;amp; "Doc exp" from Table2 and Date from Date table.&lt;BR /&gt;Measure2 and Measure3 show a specific date when an event occurs&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;On top of that I also have Activity from Table3&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;What I want to be able to give the measure the value 1 if Table1[Type] is equal to Table3[Activity], and the Date of that activity is before the date on Measure2&amp;amp;3&lt;BR /&gt;By doing that I could then filter out measure2&amp;amp;3 out of the upper table so it wouldnt appear&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The data is in a cube so I am not able to easily modify the data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope I made myself clear enough&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 21:26:44 GMT</pubDate>
    <dc:creator>hlynurgudna</dc:creator>
    <dc:date>2022-01-25T21:26:44Z</dc:date>
    <item>
      <title>Measure  that checks if values from table is equal to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-checks-if-values-from-table-is-equal-to-another/m-p/2301855#M56869</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem that I cant seem to figure out how to solve, have been browsing through this forum and I cant find anything that works for me&lt;/P&gt;&lt;P&gt;I want to create a measure "X" that gives me 1 or 0 depending if two conditions are met&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a "Letter Code" which is from Table1, "Type" &amp;amp; "Doc exp" from Table2 and Date from Date table.&lt;BR /&gt;Measure2 and Measure3 show a specific date when an event occurs&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;On top of that I also have Activity from Table3&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;What I want to be able to give the measure the value 1 if Table1[Type] is equal to Table3[Activity], and the Date of that activity is before the date on Measure2&amp;amp;3&lt;BR /&gt;By doing that I could then filter out measure2&amp;amp;3 out of the upper table so it wouldnt appear&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The data is in a cube so I am not able to easily modify the data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope I made myself clear enough&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 21:26:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-checks-if-values-from-table-is-equal-to-another/m-p/2301855#M56869</guid>
      <dc:creator>hlynurgudna</dc:creator>
      <dc:date>2022-01-25T21:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Measure  that checks if values from table is equal to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-checks-if-values-from-table-is-equal-to-another/m-p/2302560#M56899</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I think this is what I am trying to do, but I need to do this in a measure, not by adding a column&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Column = IF(Table1[Country]&amp;amp;Table1[Currency]=Table1[Country]&amp;amp;RELATED(Table2[Currnecy]),"Government Bond","Coprorate Bond")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 08:23:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-checks-if-values-from-table-is-equal-to-another/m-p/2302560#M56899</guid>
      <dc:creator>hlynurgudna</dc:creator>
      <dc:date>2022-01-26T08:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Measure  that checks if values from table is equal to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-checks-if-values-from-table-is-equal-to-another/m-p/2307109#M57185</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I can roughly understand your requirement, I think you can try this measure to achieve your needs:&lt;/P&gt;
&lt;P&gt;This is the test data I created based on your description:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =

IF(MAX('Table1'[Type])=MAX('Table3'[Activity])&amp;amp;&amp;amp;MAX('Table3'[Date])&amp;lt;=[Measure2]&amp;amp;&amp;amp;MAX('Table3'[Date])&amp;lt;=[Measure3],1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can create a table chart to place it like this to get what you want:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download my test pbix file below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 08:05:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-checks-if-values-from-table-is-equal-to-another/m-p/2307109#M57185</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2022-01-28T08:05:31Z</dc:date>
    </item>
  </channel>
</rss>

