<?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: Need a calculation to take first week's value when rolled up to month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-calculation-to-take-first-week-s-value-when-rolled-up-to/m-p/2810629#M88990</link>
    <description>&lt;LI-CODE lang="markup"&gt; when I collapse the weeks to show the data by month,&lt;/LI-CODE&gt;
&lt;P&gt;Weeks and Months are incompatible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway,&amp;nbsp;Please provide sanitized sample data that fully covers your issue. &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Oct 2022 23:12:37 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2022-10-01T23:12:37Z</dc:date>
    <item>
      <title>Need a calculation to take first week's value when rolled up to month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-calculation-to-take-first-week-s-value-when-rolled-up-to/m-p/2808534#M88755</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I have a "Starting Inventory" metric that is available at a Weekly level in my data set. At a weekly level, I am seeing the information for Starting Inventory correctly (9/19/22: 3,498, 9/26/22: 6,723).&amp;nbsp;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;However, when I collapse the weeks to show the data by month, PowerBI naturally sums the Starting Inventory from the week level. Instead, I would like a calculation that takes the first result by week when rolled up into months. As shown below, when rolled up to months, Starting Inventory equals 10,221 (3498+6723). I would instead like the result to be 3,498, as that is the first week available under September.&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;Does anyone know of a solution/calculation to make this happen?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Additional details. I have tried this DAX but am forced to input "VALUES" as the system will not let me do YEAR('2-Production and Sales Inventory'[month]), despite the fact that [month] is in date/time format, which should allow it to work&lt;A href="https://learn.microsoft.com/en-us/dax/year-function-dax" target="_self"&gt; per this article&lt;/A&gt;. I don't know why the column is not appearing in the open parantheses after YEAR.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you!!&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Sep 2022 18:40:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-calculation-to-take-first-week-s-value-when-rolled-up-to/m-p/2808534#M88755</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-30T18:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need a calculation to take first week's value when rolled up to month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-calculation-to-take-first-week-s-value-when-rolled-up-to/m-p/2810629#M88990</link>
      <description>&lt;LI-CODE lang="markup"&gt; when I collapse the weeks to show the data by month,&lt;/LI-CODE&gt;
&lt;P&gt;Weeks and Months are incompatible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway,&amp;nbsp;Please provide sanitized sample data that fully covers your issue. &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 23:12:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-calculation-to-take-first-week-s-value-when-rolled-up-to/m-p/2810629#M88990</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-10-01T23:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need a calculation to take first week's value when rolled up to month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-calculation-to-take-first-week-s-value-when-rolled-up-to/m-p/2813509#M89118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;could you share a sample .pbix file? thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Tang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 09:25:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-calculation-to-take-first-week-s-value-when-rolled-up-to/m-p/2813509#M89118</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-10-03T09:25:05Z</dc:date>
    </item>
  </channel>
</rss>

