<?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 Using LOOKUPVALUE functions gives only few records in CALCULATED COLUMN in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-LOOKUPVALUE-functions-gives-only-few-records-in-CALCULATED/m-p/3338664#M125260</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Requesting help from experts on a typical problem being faced in using LOOKUPVALUE.&lt;BR /&gt;TABLE A -Is a master file with all time stamps in seconds (from a specific start date and time to a specific end date and time) ,for a MeterID,SubscriberID,and need status flag from TABLE B from respective time stamp for respective MeterID,SubcriberID.&amp;nbsp;&lt;BR /&gt;TABLE B has a status on a time stamp&amp;nbsp; only if status is logged in that time stamp,else there will not be time stamp record.There were no duplicate records in both TABLE A and TABLE B when checked for all the three columns combined (Date_Time,MeterID,SubscriberID) ,but status column has many repetitions as its a categorical type field.&lt;BR /&gt;TABLE A (&lt;SPAN&gt;Change_Log_Master)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;TABLE-B (&lt;SPAN&gt;tmMeterReadings_StatusChangeLog)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DAX iam using for "Status" CALCULATED COLUMN Is&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Status = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tmMeterReadings_StatusChangeLog&lt;/SPAN&gt;&lt;SPAN&gt;[Status]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;tmMeterReadings_StatusChangeLog&lt;/SPAN&gt;&lt;SPAN&gt;[Date_Time]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Change_Log_Master&lt;/SPAN&gt;&lt;SPAN&gt;[Date_Time]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;tmMeterReadings_StatusChangeLog&lt;/SPAN&gt;&lt;SPAN&gt;[MeterID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Change_Log_Master&lt;/SPAN&gt;&lt;SPAN&gt;[MeterID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;tmMeterReadings_StatusChangeLog&lt;/SPAN&gt;&lt;SPAN&gt;[SubscriberID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Change_Log_Master&lt;/SPAN&gt;&lt;SPAN&gt;[SubscriberID]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;But the result is yeilding only a few records in TABLE A , as below in the CALCULATED COLUMN and all other records are blanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;Being a newbie ,your support on this earnestly appreciated.&lt;BR /&gt;I tried to concatenate three columns to create an unique ID in both tables as a workaround and use LOOKUPVALUE but no improvement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 13:09:10 GMT</pubDate>
    <dc:creator>InsHunter</dc:creator>
    <dc:date>2023-07-19T13:09:10Z</dc:date>
    <item>
      <title>Using LOOKUPVALUE functions gives only few records in CALCULATED COLUMN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-LOOKUPVALUE-functions-gives-only-few-records-in-CALCULATED/m-p/3338664#M125260</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Requesting help from experts on a typical problem being faced in using LOOKUPVALUE.&lt;BR /&gt;TABLE A -Is a master file with all time stamps in seconds (from a specific start date and time to a specific end date and time) ,for a MeterID,SubscriberID,and need status flag from TABLE B from respective time stamp for respective MeterID,SubcriberID.&amp;nbsp;&lt;BR /&gt;TABLE B has a status on a time stamp&amp;nbsp; only if status is logged in that time stamp,else there will not be time stamp record.There were no duplicate records in both TABLE A and TABLE B when checked for all the three columns combined (Date_Time,MeterID,SubscriberID) ,but status column has many repetitions as its a categorical type field.&lt;BR /&gt;TABLE A (&lt;SPAN&gt;Change_Log_Master)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;TABLE-B (&lt;SPAN&gt;tmMeterReadings_StatusChangeLog)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DAX iam using for "Status" CALCULATED COLUMN Is&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Status = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tmMeterReadings_StatusChangeLog&lt;/SPAN&gt;&lt;SPAN&gt;[Status]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;tmMeterReadings_StatusChangeLog&lt;/SPAN&gt;&lt;SPAN&gt;[Date_Time]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Change_Log_Master&lt;/SPAN&gt;&lt;SPAN&gt;[Date_Time]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;tmMeterReadings_StatusChangeLog&lt;/SPAN&gt;&lt;SPAN&gt;[MeterID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Change_Log_Master&lt;/SPAN&gt;&lt;SPAN&gt;[MeterID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;tmMeterReadings_StatusChangeLog&lt;/SPAN&gt;&lt;SPAN&gt;[SubscriberID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Change_Log_Master&lt;/SPAN&gt;&lt;SPAN&gt;[SubscriberID]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;But the result is yeilding only a few records in TABLE A , as below in the CALCULATED COLUMN and all other records are blanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;Being a newbie ,your support on this earnestly appreciated.&lt;BR /&gt;I tried to concatenate three columns to create an unique ID in both tables as a workaround and use LOOKUPVALUE but no improvement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 13:09:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-LOOKUPVALUE-functions-gives-only-few-records-in-CALCULATED/m-p/3338664#M125260</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2023-07-19T13:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using LOOKUPVALUE functions gives only few records in CALCULATED COLUMN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-LOOKUPVALUE-functions-gives-only-few-records-in-CALCULATED/m-p/3342158#M125462</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="445637" data-lia-user-login="InsHunter" class="lia-mention lia-mention-user"&gt;InsHunter&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your descriptions, your dax formula is correct, for Lookupvalue function,&amp;nbsp;&lt;SPAN&gt;If there is no match that satisfies all the search values, a blank&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is returned. In other words, the function will not return a lookup value if only some of the criteria match. This also happens when the expected result is a Boolean data type.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For more details, you can read related document:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/lookupvalue-function-dax" target="_blank"&gt;LOOKUPVALUE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;A href="https://dax.guide/lookupvalue/" target="_blank"&gt;LOOKUPVALUE – DAX Guide&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Community Support Team_Binbin Yu&lt;BR /&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 02:02:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-LOOKUPVALUE-functions-gives-only-few-records-in-CALCULATED/m-p/3342158#M125462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-21T02:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using LOOKUPVALUE functions gives only few records in CALCULATED COLUMN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-LOOKUPVALUE-functions-gives-only-few-records-in-CALCULATED/m-p/3343122#M125491</link>
      <description>&lt;P&gt;Thanks for your response.I even checked the data type in both tables and they are same. As per the data there should be match as the TABLE A has all time stamps with seconds as unit and the other TABLE B from which matching records are fetched has some of the time stamps as per real life occurence. Looks strange. Is there any other probable reasons for such anomally.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 10:22:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-LOOKUPVALUE-functions-gives-only-few-records-in-CALCULATED/m-p/3343122#M125491</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2023-07-21T10:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using LOOKUPVALUE functions gives only few records in CALCULATED COLUMN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-LOOKUPVALUE-functions-gives-only-few-records-in-CALCULATED/m-p/3343746#M125515</link>
      <description>&lt;P&gt;My Apologies. There was an issue with the Power query which generates TABLE A and its fixed now. Now Iam getting all the matching records of TABLE B. Regret for the inconvenience and thanks for the assertion on the LOOKUPVALUE DAX formula.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 15:54:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-LOOKUPVALUE-functions-gives-only-few-records-in-CALCULATED/m-p/3343746#M125515</guid>
      <dc:creator>InsHunter</dc:creator>
      <dc:date>2023-07-21T15:54:18Z</dc:date>
    </item>
  </channel>
</rss>

