<?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 to get a running total for policies that billed only during a specific period in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2705244#M82011</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="423956" data-lia-user-login="escaddie" class="lia-mention lia-mention-user"&gt;escaddie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Date Table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date = CALENDAR(MIN('Table'[StartDate]),MAX('Table'[EndDate]))&lt;/LI-CODE&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;active policies = 
CALCULATE (
    COUNT ( 'Table'[PolicyNo] ),
    FILTER (
        ALL ( 'Table' ),
        [StartDate] &amp;lt;= MAX( 'Date'[Date] )
            &amp;amp;&amp;amp; [EndDate] &amp;gt;= MAX('Date'[Date] )
    )
)
    + CALCULATE (
        COUNT ( 'Table'[PolicyNo] ),
        FILTER (
            ALL ( 'Table' ),
            [StartDate] &amp;lt;= Min( 'Date'[Date] )
                &amp;amp;&amp;amp; [EndDate] = BLANK ()
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&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 _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 06:34:04 GMT</pubDate>
    <dc:creator>v-zhangti</dc:creator>
    <dc:date>2022-08-17T06:34:04Z</dc:date>
    <item>
      <title>Measure to get a running total for policies that billed only during a specific period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2690991#M81032</link>
      <description>&lt;P&gt;Hey Community,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have been langishing over this for some time.&lt;BR /&gt;&lt;BR /&gt;I have a list of policies with start and end dates and I want to visualize them over time with a total of "active policies" for any given period.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;PolicyNo&lt;/TD&gt;&lt;TD&gt;StartDate&lt;/TD&gt;&lt;TD&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1/1/2019&lt;/TD&gt;&lt;TD&gt;1/15/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1/1/2020&lt;/TD&gt;&lt;TD&gt;2/20/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1/2/2020&lt;/TD&gt;&lt;TD&gt;2/20/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;3/1/2021&lt;/TD&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;Some policies don't have end dates because they are continuously billing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 20:50:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2690991#M81032</guid>
      <dc:creator>escaddie</dc:creator>
      <dc:date>2022-08-09T20:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to get a running total for policies that billed only during a specific period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2691345#M81056</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="423956" data-lia-user-login="escaddie" class="lia-mention lia-mention-user"&gt;escaddie&lt;/a&gt; , refer to my blog and the attached file after the signature on the same topic &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 03:29:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2691345#M81056</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-10T03:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to get a running total for policies that billed only during a specific period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2692959#M81146</link>
      <description>&lt;P&gt;This is magical! I didnt think to look at HR type visualizations. Thank you. Im going to impliment this today and if all is well will mark as the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 15:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2692959#M81146</guid>
      <dc:creator>escaddie</dc:creator>
      <dc:date>2022-08-10T15:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to get a running total for policies that billed only during a specific period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2705244#M82011</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="423956" data-lia-user-login="escaddie" class="lia-mention lia-mention-user"&gt;escaddie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Date Table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date = CALENDAR(MIN('Table'[StartDate]),MAX('Table'[EndDate]))&lt;/LI-CODE&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;active policies = 
CALCULATE (
    COUNT ( 'Table'[PolicyNo] ),
    FILTER (
        ALL ( 'Table' ),
        [StartDate] &amp;lt;= MAX( 'Date'[Date] )
            &amp;amp;&amp;amp; [EndDate] &amp;gt;= MAX('Date'[Date] )
    )
)
    + CALCULATE (
        COUNT ( 'Table'[PolicyNo] ),
        FILTER (
            ALL ( 'Table' ),
            [StartDate] &amp;lt;= Min( 'Date'[Date] )
                &amp;amp;&amp;amp; [EndDate] = BLANK ()
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&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 _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 06:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2705244#M82011</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-08-17T06:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to get a running total for policies that billed only during a specific period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2706899#M82105</link>
      <description>&lt;P&gt;This was great pretty much exactly what I needed. I changed the ALL filters to ALL selected so I could filter them on the visual but other than that works like a charm. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 13:47:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-get-a-running-total-for-policies-that-billed-only/m-p/2706899#M82105</guid>
      <dc:creator>escaddie</dc:creator>
      <dc:date>2022-08-17T13:47:48Z</dc:date>
    </item>
  </channel>
</rss>

