<?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: Assign value from lookup table when no data is present in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1731167#M35861</link>
    <description>&lt;P&gt;Thank you for the response,&amp;nbsp;Anonymous&lt;/LI-USER&gt;,. When you're as new as I am to DAX bad code means that one is desperate to find a solution and will make silly mistakes along the way. I am just trying to find a solution to my problem.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 18:13:40 GMT</pubDate>
    <dc:creator>sdgiss</dc:creator>
    <dc:date>2021-03-18T18:13:40Z</dc:date>
    <item>
      <title>Assign value from lookup table when no data is present</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1728432#M35777</link>
      <description>&lt;P&gt;Hello PBI Community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have what I think is a simple question but as of yet have not been able to produce the appropriate outcome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date table, a fact table, and a lookup table. The lookup table has daily standards (goals) that I will be using to compare to the actual daily output. On the days when I don't have data for an individual it does not report the goal for that day (Individual 4, below). As you would guess, I would like to report the goal even if they don't have data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance would be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;Daily report&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#339966"&gt;dTrainMatch&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Goal&amp;nbsp;Dist&amp;nbsp;=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Keyword"&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Variable"&gt;sumgoaldist&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;SUMX&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;fDataReference,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;dTrainMatch[Goal-Dist],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;dTrainMatch[Date],&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;RELATED&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;dDateSeason[Date]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Keyword"&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Total&amp;nbsp;Dist]&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;BLANK&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Variable"&gt;sumgoaldist&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;*&amp;nbsp;[Top&amp;nbsp;10&amp;nbsp;Avg&amp;nbsp;Dist],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Variable"&gt;sumgoaldist&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;*&amp;nbsp;[Top&amp;nbsp;10&amp;nbsp;Avg&amp;nbsp;Dist]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!-- EndFragment  --&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 18:23:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1728432#M35777</guid>
      <dc:creator>sdgiss</dc:creator>
      <dc:date>2021-03-17T18:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Assign value from lookup table when no data is present</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1730894#M35840</link>
      <description>&lt;P&gt;The IF in the measure is totally useless. Since both expressions return the same thing, what does it do?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 15:20:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1730894#M35840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-18T15:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Assign value from lookup table when no data is present</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1731167#M35861</link>
      <description>&lt;P&gt;Thank you for the response,&amp;nbsp;Anonymous&lt;/LI-USER&gt;,. When you're as new as I am to DAX bad code means that one is desperate to find a solution and will make silly mistakes along the way. I am just trying to find a solution to my problem.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 18:13:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1731167#M35861</guid>
      <dc:creator>sdgiss</dc:creator>
      <dc:date>2021-03-18T18:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Assign value from lookup table when no data is present</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1731183#M35864</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="266864" data-lia-user-login="sdgiss" class="lia-mention lia-mention-user"&gt;sdgiss&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before trying to write anything... everyone who is new to DAX should read this:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/star-schema" target="_blank"&gt;Understand star schema and the importance for Power BI - Power BI | Microsoft Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, it should be easier for you to understand where you go wrong... Please always remember that "not everything that can be done should be done."&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 18:40:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1731183#M35864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-18T18:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Assign value from lookup table when no data is present</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1731207#M35869</link>
      <description>&lt;P&gt;Thank you for sending along this reference&amp;nbsp;Anonymous&lt;/a&gt;. I've read it before, but I think it would be worth reading it again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, your saying fits my situation. I ended up finding a solution to my problem and it had little resemblence to what I posted above. The IF statement has been removed.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 18:56:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Assign-value-from-lookup-table-when-no-data-is-present/m-p/1731207#M35869</guid>
      <dc:creator>sdgiss</dc:creator>
      <dc:date>2021-03-18T18:56:46Z</dc:date>
    </item>
  </channel>
</rss>

