<?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: New Column that returns a single value based on date? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625143#M32858</link>
    <description>&lt;P&gt;Here is a very crude variation.&amp;nbsp; I know this can be improved with LASTNONBLANKVALUE but i need to re-learn that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Also, "Jan 2th" - really?!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 04:53:34 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-01-27T04:53:34Z</dc:date>
    <item>
      <title>New Column that returns a single value based on date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625028#M32848</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below data set with dates as to when a customer filled out a survey. I want to create two new columns that shows me their response based on The First Survey they filled out (earliest date). Then a second new column that does the same but shows the response for the last survey they filled out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried a bunch of claculations using values and first/last date. But i can't seem to get it correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Date&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Response&lt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.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625028#M32848</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2021-01-27T03:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: New Column that returns a single value based on date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625067#M32853</link>
      <description>&lt;P&gt;Power Query or DAX?&amp;nbsp; Calculated Column or Measure?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 04:00:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625067#M32853</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-01-27T04:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: New Column that returns a single value based on date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625084#M32854</link>
      <description>&lt;P&gt;I need to show the values in a column. So either PowerQ or, calculated column or a new formular column would work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 04:13:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625084#M32854</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2021-01-27T04:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: New Column that returns a single value based on date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625143#M32858</link>
      <description>&lt;P&gt;Here is a very crude variation.&amp;nbsp; I know this can be improved with LASTNONBLANKVALUE but i need to re-learn that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Also, "Jan 2th" - really?!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 04:53:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625143#M32858</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-01-27T04:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: New Column that returns a single value based on date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625161#M32859</link>
      <description>&lt;P&gt;Here's a slightly more noble version&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;First Response = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var c = [Customer]&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var f = minx(filter(Surveys,[Customer]=c),[DateValue])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;return minx(filter(Surveys,[DateValue]=f &amp;amp;&amp;amp; [Customer]=c),[Response])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;What do you expect to happen when the user submits multiple surveys on the same day?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jan 2021 05:09:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1625161#M32859</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-01-27T05:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: New Column that returns a single value based on date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1626253#M32886</link>
      <description>&lt;P&gt;i was doing it at 11pm.. after spening 2 hours messing around with it.. give me a break...lol.. I'll try your solution below..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 13:36:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1626253#M32886</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2021-01-27T13:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: New Column that returns a single value based on date?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1626277#M32887</link>
      <description>&lt;P&gt;A customer (person) is only sent one survey a quarter. So there is no issue with multiple on the same day.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 13:44:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-that-returns-a-single-value-based-on-date/m-p/1626277#M32887</guid>
      <dc:creator>sharpedogs</dc:creator>
      <dc:date>2021-01-27T13:44:00Z</dc:date>
    </item>
  </channel>
</rss>

