<?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: Returning value from Table A if Table B condition meet Table A in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-value-from-Table-A-if-Table-B-condition-meet-Table-A/m-p/3115325#M110284</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="498528" data-lia-user-login="law_90" class="lia-mention lia-mention-user"&gt;law_90&lt;/a&gt; , You can create a new column in dax like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in current week table =&lt;/P&gt;
&lt;P&gt;var _cnt = countx(his, his[issue Name] = curr[Issue Name] &amp;amp;&amp;amp; his[Open Date] &amp;lt; curr[Open date]), his[Issue name])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;if(not(isblank(_cnt)), "Remain", "Newly Added")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=Wu1mWxR23jU" target="_blank"&gt;https://www.youtube.com/watch?v=Wu1mWxR23jU&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=czNHt7UXIe8" target="_blank"&gt;https://www.youtube.com/watch?v=czNHt7UXIe8&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 02:56:22 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2023-03-07T02:56:22Z</dc:date>
    <item>
      <title>Returning value from Table A if Table B condition meet Table A</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-value-from-Table-A-if-Table-B-condition-meet-Table-A/m-p/3115264#M110281</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to PowerBI and currently developing some dashboard by facing some issue.&lt;/P&gt;&lt;P&gt;I have 2 tables - namely historical_data and current_weekly_data&lt;/P&gt;&lt;P&gt;The historical_data consist of 3 columns, Issue Name, Open Date and Status shown below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current_weekly_data will only consist of 1 column - Issue Name.&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 wanted to achieve is to create the Open Date and Status calculated column in current_weekly_data table to achieve the following:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this can be done using Merge in Power Query but the data is huge and having slowness in performance when doing that and hence I would request for some guidance in doing this using DAX.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have no idea how can I retrieve the value from historical_data table to be inserted into the current_weekly_data table if the issue name match.. any help would be very much appreciated.&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>Tue, 07 Mar 2023 02:13:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-value-from-Table-A-if-Table-B-condition-meet-Table-A/m-p/3115264#M110281</guid>
      <dc:creator>law_90</dc:creator>
      <dc:date>2023-03-07T02:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Returning value from Table A if Table B condition meet Table A</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-value-from-Table-A-if-Table-B-condition-meet-Table-A/m-p/3115325#M110284</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="498528" data-lia-user-login="law_90" class="lia-mention lia-mention-user"&gt;law_90&lt;/a&gt; , You can create a new column in dax like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in current week table =&lt;/P&gt;
&lt;P&gt;var _cnt = countx(his, his[issue Name] = curr[Issue Name] &amp;amp;&amp;amp; his[Open Date] &amp;lt; curr[Open date]), his[Issue name])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;if(not(isblank(_cnt)), "Remain", "Newly Added")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=Wu1mWxR23jU" target="_blank"&gt;https://www.youtube.com/watch?v=Wu1mWxR23jU&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=czNHt7UXIe8" target="_blank"&gt;https://www.youtube.com/watch?v=czNHt7UXIe8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 02:56:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-value-from-Table-A-if-Table-B-condition-meet-Table-A/m-p/3115325#M110284</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-03-07T02:56:22Z</dc:date>
    </item>
  </channel>
</rss>

