<?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: DAX measure for calculating open values between two dates - Power Pivot in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-open-values-between-two-dates-Power/m-p/2977867#M99752</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="488900" data-lia-user-login="pmc0861" class="lia-mention lia-mention-user"&gt;pmc0861&lt;/a&gt; , seems similar to the HR use case - &lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: &lt;A href="https://youtu.be/fvgcx8QLqZU" target="_blank"&gt;https://youtu.be/fvgcx8QLqZU&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 03:05:19 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-12-20T03:05:19Z</dc:date>
    <item>
      <title>DAX measure for calculating open values between two dates - Power Pivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-open-values-between-two-dates-Power/m-p/2977798#M99745</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New to Power Pivot and DAX so please excuse if this isn't the correct place to post or my question is utterly ridiculous.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table that has a list of purchase orders. The table includes two date columns, one for the date the PO was opened and the other for the date the PO was closed.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a dimension table that lists months&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;&lt;P&gt;What I'm wanting to do is create a pivot table using power pivot that shows the open value of purchase orders at a point in time determined by the mth and lists the open values as follows (open value is sum of Amount where open_date &amp;lt;= Month &amp;amp; close_date &amp;gt; Month):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm unsure how to define this in a measure in Power Pivot as I'm not sure how to link it to the month table. I've tried a few things and even just trying something simple like only using one date I can't work out...&amp;nbsp;&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;&lt;P&gt;Ideally I'd like a measure that looks at both dates or if recommend a better way to be looking at this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated as again, I'm very new to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 02:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-open-values-between-two-dates-Power/m-p/2977798#M99745</guid>
      <dc:creator>pmc0861</dc:creator>
      <dc:date>2022-12-20T02:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for calculating open values between two dates - Power Pivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-open-values-between-two-dates-Power/m-p/2977867#M99752</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="488900" data-lia-user-login="pmc0861" class="lia-mention lia-mention-user"&gt;pmc0861&lt;/a&gt; , seems similar to the HR use case - &lt;A href="https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: &lt;A href="https://youtu.be/fvgcx8QLqZU" target="_blank"&gt;https://youtu.be/fvgcx8QLqZU&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 03:05:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-open-values-between-two-dates-Power/m-p/2977867#M99752</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-20T03:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for calculating open values between two dates - Power Pivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-open-values-between-two-dates-Power/m-p/2977991#M99758</link>
      <description>&lt;P&gt;Thanks. This definitely got me moving in the right direction (stepping through this one part at a time).... I've got my DAX expression now as:&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 class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;SUMX&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class=""&gt;(PO_Committed,PO_Committed[AddedMth]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;max&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Month_Tbl[Month])),[OrigCost])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Note that column names are a little different from my original post as original post was simplified to clarify the issue I was having.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;For some reason, the above DAX only gives me items added in that month rather than in that month or earlier despite using &amp;lt;= in the filter. Any idea why this would be happening?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 04:53:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-open-values-between-two-dates-Power/m-p/2977991#M99758</guid>
      <dc:creator>pmc0861</dc:creator>
      <dc:date>2022-12-20T04:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for calculating open values between two dates - Power Pivot</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-open-values-between-two-dates-Power/m-p/2978026#M99761</link>
      <description>&lt;P&gt;OK.... scratch the above. I had a relationship set with the date table that I've now marked as inactive and its giving me what I expected.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 05:29:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-open-values-between-two-dates-Power/m-p/2978026#M99761</guid>
      <dc:creator>pmc0861</dc:creator>
      <dc:date>2022-12-20T05:29:45Z</dc:date>
    </item>
  </channel>
</rss>

