<?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: Measure that shows dates thru yesterday in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441694#M130765</link>
    <description>&lt;P&gt;I have a Date table.&amp;nbsp; The formula is now&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Test = &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; __curent_year = &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt; ()) &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; __yesterday = &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt; () &lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'DateTable', &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt; ('DateTable'[Date]) = __curent_year &amp;amp;&amp;amp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'DateTable'[Date]&amp;lt; __yesterday &amp;nbsp; &amp;nbsp; ) &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I get the follow error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 21 Sep 2023 14:40:50 GMT</pubDate>
    <dc:creator>Del235</dc:creator>
    <dc:date>2023-09-21T14:40:50Z</dc:date>
    <item>
      <title>Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3440741#M130674</link>
      <description>&lt;P&gt;Today is 9/20/2023.&amp;nbsp; I'd like to create a measure that would show All dates thru yesterday.&amp;nbsp; I.E. 1/1, 1/2 ... 9/18, 9/19.&amp;nbsp; It would always reference what today is and show all dates thru yesterday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 00:54:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3440741#M130674</guid>
      <dc:creator>Del235</dc:creator>
      <dc:date>2023-09-21T00:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441472#M130743</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92882" data-lia-user-login="Del235" class="lia-mention lia-mention-user"&gt;Del235&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure is usually something which is aggregrable, like sum, min...&lt;/P&gt;&lt;P&gt;When you wrote all the dates up to yesterday, you mean table with all dates in ths year up to yesterday? Or...&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 12:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441472#M130743</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-09-21T12:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441624#M130756</link>
      <description>&lt;P&gt;My apologies... Table with all dates in this year up to yesterday.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 13:57:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441624#M130756</guid>
      <dc:creator>Del235</dc:creator>
      <dc:date>2023-09-21T13:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441664#M130760</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92882" data-lia-user-login="Del235" class="lia-mention lia-mention-user"&gt;Del235&lt;/a&gt;&amp;nbsp;your cal. table could be&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Test = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; __curent_year = &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; __yesterday = &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Date',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;('Date'[Date]) = __curent_year &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Date'[Date]&amp;lt; __yesterday&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Did I answer your question? Kudos appreciated / accept solution!&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Sep 2023 14:20:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441664#M130760</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-09-21T14:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441694#M130765</link>
      <description>&lt;P&gt;I have a Date table.&amp;nbsp; The formula is now&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Test = &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; __curent_year = &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt; ()) &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; __yesterday = &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt; () &lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'DateTable', &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt; ('DateTable'[Date]) = __curent_year &amp;amp;&amp;amp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'DateTable'[Date]&amp;lt; __yesterday &amp;nbsp; &amp;nbsp; ) &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I get the follow error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Sep 2023 14:40:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441694#M130765</guid>
      <dc:creator>Del235</dc:creator>
      <dc:date>2023-09-21T14:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441741#M130769</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92882" data-lia-user-login="Del235" class="lia-mention lia-mention-user"&gt;Del235&lt;/a&gt;&amp;nbsp;I wrote you solution as new calculated table, not column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you need column in your Date table to mark somehow dates in current year less than yesterday?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 15:14:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441741#M130769</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-09-21T15:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441871#M130774</link>
      <description>&lt;P&gt;I will check&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 16:28:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3441871#M130774</guid>
      <dc:creator>Del235</dc:creator>
      <dc:date>2023-09-21T16:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3442046#M130781</link>
      <description>&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;Feedback Type:&lt;BR /&gt;Frown (Error)&lt;/P&gt;&lt;P&gt;Error Message:&lt;BR /&gt;'approx_count_distinct' supports only field access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 19:46:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3442046#M130781</guid>
      <dc:creator>Del235</dc:creator>
      <dc:date>2023-09-21T19:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3442072#M130782</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92882" data-lia-user-login="Del235" class="lia-mention lia-mention-user"&gt;Del235&lt;/a&gt;&amp;nbsp;there is no measure in my proposed solution so please check your error.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:23:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3442072#M130782</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-09-21T20:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3442127#M130785</link>
      <description>&lt;P&gt;Error appears but the table is created as Test.&amp;nbsp; The table shows every date in 2023 but it doesn't stop at 9/20, which would have been yesterday.&amp;nbsp; Which field should I be using?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 21:37:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3442127#M130785</guid>
      <dc:creator>Del235</dc:creator>
      <dc:date>2023-09-21T21:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that shows dates thru yesterday</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3442373#M130805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92882" data-lia-user-login="Del235" class="lia-mention lia-mention-user"&gt;Del235&lt;/a&gt;&amp;nbsp;try just to rename table which is not Test. If it not works, please share your Date table details.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 05:25:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-shows-dates-thru-yesterday/m-p/3442373#M130805</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-09-22T05:25:16Z</dc:date>
    </item>
  </channel>
</rss>

