<?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: Pulling data between two tables. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136642#M111815</link>
    <description>&lt;P&gt;The problem is the "Not submitted". That is text whereas the actual values are datetime. You just need to use the value of the calculation as is, and if it is blank then leave it as blank.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 15:19:19 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-03-16T15:19:19Z</dc:date>
    <item>
      <title>Pulling data between two tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136552#M111809</link>
      <description>&lt;P&gt;Below is the formula I am using on multiple columns. It will pull data from one table to another by my two Concat search coulmns (Concat Search &amp;amp; Column). However, I wanted to use this same formula for another column. In this case, "Completion time". I am receiving the error "Expressions that yield variant data-type cannot be useed to define calculated columns". Is there a way to use this formula to pull a date instead of a whole number?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the working formula. This formula will pull the "custom" column that just contains "Yes" or "No" responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Completed = &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;LASTNONBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;[Custom]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate List'&lt;/SPAN&gt;&lt;SPAN&gt;[Column]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;[Concat Search]&lt;/SPAN&gt;&lt;SPAN&gt;))=&lt;/SPAN&gt;&lt;SPAN&gt;blank&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;"Not Submitted"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;LASTNONBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;[Custom]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate List'&lt;/SPAN&gt;&lt;SPAN&gt;[Column]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;[Concat Search]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below formula will not work because column "Completion time is Date/time formatted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Completion Time = &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;LASTNONBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;[Completion time]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate List'&lt;/SPAN&gt;&lt;SPAN&gt;[Column]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;[Concat Search]&lt;/SPAN&gt;&lt;SPAN&gt;))=&lt;/SPAN&gt;&lt;SPAN&gt;blank&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;"Not Submitted"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;LASTNONBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;[Completion time]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate List'&lt;/SPAN&gt;&lt;SPAN&gt;[Column]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;[Concat Search]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2023 14:41:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136552#M111809</guid>
      <dc:creator>Nick221_</dc:creator>
      <dc:date>2023-03-16T14:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling data between two tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136642#M111815</link>
      <description>&lt;P&gt;The problem is the "Not submitted". That is text whereas the actual values are datetime. You just need to use the value of the calculation as is, and if it is blank then leave it as blank.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 15:19:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136642#M111815</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-03-16T15:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling data between two tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136649#M111816</link>
      <description>&lt;P&gt;When I remove the "Not Submitted" text, I am still receiving the same error.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 15:21:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136649#M111816</guid>
      <dc:creator>Nick221_</dc:creator>
      <dc:date>2023-03-16T15:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling data between two tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136685#M111819</link>
      <description>&lt;P&gt;The formula is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;LASTNONBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;[Completion time]&lt;/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/SPAN&gt;&lt;SPAN&gt;'Affiliate List'&lt;/SPAN&gt;&lt;SPAN&gt;[Column]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Affiliate Submission'&lt;/SPAN&gt;&lt;SPAN&gt;[Concat Search]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am not receving any errors, however it is not pulling any data. Just blanks.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Mar 2023 15:33:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136685#M111819</guid>
      <dc:creator>Nick221_</dc:creator>
      <dc:date>2023-03-16T15:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling data between two tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136698#M111820</link>
      <description>&lt;P&gt;If the column is being added to the Affiliate List table you can try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Completion Time =
VAR CurrentColumn = 'Affiliate List'[Column]
RETURN
    CALCULATE (
        MAX ( 'Affiliate Submission'[Completion time].[Date] ),
        REMOVEFILTERS ( 'Affiliate Submission' ),
        'Affiliate Submission'[Concat Search] = CurrentColumn
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Mar 2023 15:39:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136698#M111820</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-03-16T15:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling data between two tables.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136701#M111821</link>
      <description>&lt;P&gt;I actually removed the If() part of the formula and they seemed to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 15:40:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-data-between-two-tables/m-p/3136701#M111821</guid>
      <dc:creator>Nick221_</dc:creator>
      <dc:date>2023-03-16T15:40:17Z</dc:date>
    </item>
  </channel>
</rss>

