<?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: Value of the first month in a quarter or year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-of-the-first-month-in-a-quarter-or-year/m-p/3266513#M120935</link>
    <description>&lt;P&gt;I was able to figure it out. Shareing the result hopeng it could help somebody else in future&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jun 2023 03:28:43 GMT</pubDate>
    <dc:creator>Kazu</dc:creator>
    <dc:date>2023-06-03T03:28:43Z</dc:date>
    <item>
      <title>Value of the first month in a quarter or year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-of-the-first-month-in-a-quarter-or-year/m-p/3264675#M120825</link>
      <description>&lt;P&gt;The source data is like below.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar 2023&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apr 2023&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May 2023&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jun 2023&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jul 2023&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the data, I want to define a measure that shows the value of the first month, whether the values are shown by months, by quarter, or by year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in case of shown by quarter, it would look like below. Q1 is empty because there is no data for Jan. Q2 is 1 which is from Apr. Q3 is 3 which is from Jul.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Q1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Q2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Q3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;LIkewise, when shown by year, it would look like below because the value for Jan is null (not exist).&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2023&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to show Q2 and Q3 values correctly by using&amp;nbsp;&lt;SPAN&gt;FIRSTNONBLANKVALUE() like below. (pleae ignore why I use MINX. it is for other reasons)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;FIRSTNONBLANKVALUE = &lt;/SPAN&gt;&lt;SPAN&gt;FIRSTNONBLANKVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(Dates[Date], &lt;/SPAN&gt;&lt;SPAN&gt;MINX&lt;/SPAN&gt;&lt;SPAN&gt;('Fact', 'Fact'[Value]))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN&gt;However, this does not work for Q1 or year because they show 1 from the March data. How can I show blank here? I want to achieve this in a single measure and don't want to create a separate masure for monthly, quarterly and yearly.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Jun 2023 21:11:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-of-the-first-month-in-a-quarter-or-year/m-p/3264675#M120825</guid>
      <dc:creator>Kazu</dc:creator>
      <dc:date>2023-06-01T21:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Value of the first month in a quarter or year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-of-the-first-month-in-a-quarter-or-year/m-p/3266513#M120935</link>
      <description>&lt;P&gt;I was able to figure it out. Shareing the result hopeng it could help somebody else in future&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2023 03:28:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Value-of-the-first-month-in-a-quarter-or-year/m-p/3266513#M120935</guid>
      <dc:creator>Kazu</dc:creator>
      <dc:date>2023-06-03T03:28:43Z</dc:date>
    </item>
  </channel>
</rss>

