<?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 portfolio count per time period in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2052623#M46207</link>
    <description>&lt;P&gt;Sample data &lt;A title="Some sample data" href="https://drive.google.com/file/d/196nEDrYTzowjbI0OTw6PpHepWpcBQQN0/view?usp=sharing" target="_self"&gt;here&lt;/A&gt;. (&amp;lt;-- I hope that works!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm working toward is a count of householdlookupid per fundraiserlookupid and date period. Take, for example, fundraiserlookupid 0095050: Householdlookupid 0210855 was assigned to that fundraiser in date period 2016/5 - 2017/4 and stayed assigned until date period 2018/5 - 2019/4. So, for this particular combo of fundraiser and household, the desired output would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FundraserLookupid&lt;/TD&gt;&lt;TD&gt;DatePeriod&lt;/TD&gt;&lt;TD&gt;HouseholdCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0095050&lt;/TD&gt;&lt;TD&gt;2016/5 - 2017/4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0095050&lt;/TD&gt;&lt;TD&gt;2017/5 - 2018/4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0095050&lt;/TD&gt;&lt;TD&gt;2018/5 - 2019/4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the things I'm trying to figure out is how to assign the dateperiod in the case of the middle row above, where the householdlookupid doesn't actually show up in the data but "is there" because it's "active" during that year.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very much appreciate any thoughts anyone has on the matter. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 02 Sep 2021 02:52:08 GMT</pubDate>
    <dc:creator>MarkPalmberg</dc:creator>
    <dc:date>2021-09-02T02:52:08Z</dc:date>
    <item>
      <title>portfolio count per time period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2052623#M46207</link>
      <description>&lt;P&gt;Sample data &lt;A title="Some sample data" href="https://drive.google.com/file/d/196nEDrYTzowjbI0OTw6PpHepWpcBQQN0/view?usp=sharing" target="_self"&gt;here&lt;/A&gt;. (&amp;lt;-- I hope that works!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm working toward is a count of householdlookupid per fundraiserlookupid and date period. Take, for example, fundraiserlookupid 0095050: Householdlookupid 0210855 was assigned to that fundraiser in date period 2016/5 - 2017/4 and stayed assigned until date period 2018/5 - 2019/4. So, for this particular combo of fundraiser and household, the desired output would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FundraserLookupid&lt;/TD&gt;&lt;TD&gt;DatePeriod&lt;/TD&gt;&lt;TD&gt;HouseholdCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0095050&lt;/TD&gt;&lt;TD&gt;2016/5 - 2017/4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0095050&lt;/TD&gt;&lt;TD&gt;2017/5 - 2018/4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0095050&lt;/TD&gt;&lt;TD&gt;2018/5 - 2019/4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the things I'm trying to figure out is how to assign the dateperiod in the case of the middle row above, where the householdlookupid doesn't actually show up in the data but "is there" because it's "active" during that year.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very much appreciate any thoughts anyone has on the matter. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 02:52:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2052623#M46207</guid>
      <dc:creator>MarkPalmberg</dc:creator>
      <dc:date>2021-09-02T02:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio count per time period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2056640#M46351</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="61102" data-lia-user-login="MarkPalmberg" class="lia-mention lia-mention-user"&gt;MarkPalmberg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a disconnected (no relationships) table DatePeriod:&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;2. Create measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HouseholdCount = 
VAR vYearEndDate =
    MAX ( DatePeriod[YearEndDate] )
VAR vResult =
    CALCULATE (
        COUNT ( 'sample table'[householdlookupid] ),
        vYearEndDate &amp;gt;= 'sample table'[FromDateEvaluationYearEndDate]
            &amp;amp;&amp;amp; vYearEndDate &amp;lt;= 'sample table'[ToDateEvaluationYearEndDate]
    )
RETURN
    vResult&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Create visual using DatePeriod[DatePeriod]:&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>Fri, 03 Sep 2021 15:07:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2056640#M46351</guid>
      <dc:creator>DataInsights</dc:creator>
      <dc:date>2021-09-03T15:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio count per time period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2056919#M46358</link>
      <description>&lt;P&gt;Thank you so much for taking the time to look at this,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="207275" data-lia-user-login="DataInsights" class="lia-mention lia-mention-user"&gt;DataInsights&lt;/a&gt;&amp;nbsp;! I got the measure built out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm unclear how I get from Step 2 to Step 3 if DatePeriod table is unrelated to [sample table].&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 19:14:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2056919#M46358</guid>
      <dc:creator>MarkPalmberg</dc:creator>
      <dc:date>2021-09-03T19:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio count per time period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2056956#M46360</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="61102" data-lia-user-login="MarkPalmberg" class="lia-mention lia-mention-user"&gt;MarkPalmberg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The date logic is built into the measure, so no relationship is needed between the tables. The first two fields in the visual are from [sample table], the third field is DatePeriod[DatePeriod], and the fourth field is the measure [HouseholdCount].&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 20:01:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2056956#M46360</guid>
      <dc:creator>DataInsights</dc:creator>
      <dc:date>2021-09-03T20:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio count per time period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2057110#M46363</link>
      <description>&lt;P&gt;So if I create a table visual and add FUNDRAISERLOOKUPID and householdlookupid from [sample table], how do I add&amp;nbsp;&lt;SPAN&gt;DatePeriod[DatePeriod] to that table?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 23:05:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2057110#M46363</guid>
      <dc:creator>MarkPalmberg</dc:creator>
      <dc:date>2021-09-03T23:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio count per time period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2057515#M46389</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="61102" data-lia-user-login="MarkPalmberg" class="lia-mention lia-mention-user"&gt;MarkPalmberg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drag the field into the visual as shown below:&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, 04 Sep 2021 14:20:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2057515#M46389</guid>
      <dc:creator>DataInsights</dc:creator>
      <dc:date>2021-09-04T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio count per time period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2061975#M46546</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 13:53:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2061975#M46546</guid>
      <dc:creator>MarkPalmberg</dc:creator>
      <dc:date>2021-09-07T13:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio count per time period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2062574#M46568</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="61102" data-lia-user-login="MarkPalmberg" class="lia-mention lia-mention-user"&gt;MarkPalmberg&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's expected, since there is no relationship between the tables. However, when you add the measure HouseholdCount to the visual, the issue is resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 19:48:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2062574#M46568</guid>
      <dc:creator>DataInsights</dc:creator>
      <dc:date>2021-09-07T19:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio count per time period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2062954#M46586</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="207275" data-lia-user-login="DataInsights" class="lia-mention lia-mention-user"&gt;DataInsights&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 01:29:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/portfolio-count-per-time-period/m-p/2062954#M46586</guid>
      <dc:creator>MarkPalmberg</dc:creator>
      <dc:date>2021-09-08T01:29:50Z</dc:date>
    </item>
  </channel>
</rss>

