<?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: Average size delivered per person for the last 3 sprints in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-size-delivered-per-person-for-the-last-3-sprints/m-p/3573953#M137782</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="189380" data-lia-user-login="SquidgyWidget" class="lia-mention lia-mention-user"&gt;SquidgyWidget&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Share more data in Excel or Csv and show the expected result for a few users. You can share the file including a dummy PBI using Google Drive or One Drive, past the link here.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 06:52:38 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2023-12-08T06:52:38Z</dc:date>
    <item>
      <title>Average size delivered per person for the last 3 sprints</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-size-delivered-per-person-for-the-last-3-sprints/m-p/3573668#M137774</link>
      <description>&lt;P&gt;I need a measure to calulate the average size of cards delivered per person for the last 3 sprints to assist with Agile sprint planning.&amp;nbsp;Sample data might look like below:&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;The results from below meaure does not correctly calculate.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_AvgPointsDelivered = 
    var _Last3Sprints =
        SUMMARIZE(
            FILTER(
                SUMMARIZE(
                    'Sprint Snapshots',
                    'Sprint Snapshots'[Sprint],
                    "Rank",        
                    RANKX(
                        ALLEXCEPT('Sprint Snapshots', 'Sprint Snapshots'[Column]),
                        CALCULATE( MAX ('Sprint Snapshots'[Sprint])),
                        ,
                        DESC,
                        Dense
                    )
                )
            , [Rank] &amp;lt;= 3)
        , [Sprint])

    var _AvgPointsDelivered = 
        DIVIDE(
            CALCULATE(
                sum('Sprint Snapshots'[Size])
                , 'Sprint Snapshots', 'Sprint Snapshots'[Sprint] in _Last3Sprints
                , 'Sprint Snapshots', 'Sprint Snapshots'[Column] = "Done"
            )
        , 3)

    return
        CALCULATE(_AvgPointsDelivered)+0&lt;/LI-CODE&gt;&lt;P&gt;What am I doing wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 02:45:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-size-delivered-per-person-for-the-last-3-sprints/m-p/3573668#M137774</guid>
      <dc:creator>SquidgyWidget</dc:creator>
      <dc:date>2023-12-08T02:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Average size delivered per person for the last 3 sprints</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-size-delivered-per-person-for-the-last-3-sprints/m-p/3573953#M137782</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="189380" data-lia-user-login="SquidgyWidget" class="lia-mention lia-mention-user"&gt;SquidgyWidget&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Share more data in Excel or Csv and show the expected result for a few users. You can share the file including a dummy PBI using Google Drive or One Drive, past the link here.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 06:52:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-size-delivered-per-person-for-the-last-3-sprints/m-p/3573953#M137782</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-12-08T06:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Average size delivered per person for the last 3 sprints</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-size-delivered-per-person-for-the-last-3-sprints/m-p/3574241#M137787</link>
      <description>&lt;P&gt;I think your issues are mainly caused by using 'Sprint Snapshots' as an argument to the calculate function.&amp;nbsp;&lt;BR /&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AvgPointsDelivered = 
    var _Last3Sprints = TOPN(
	3,
        CALCULATETABLE(VALUES('Sprint Snapshots'[Sprint]),ALL()),
	'Sprint Snapshots'[Sprint],
	DESC)

    var _AvgPointsDelivered = 
        DIVIDE(
            CALCULATE(
                sum('Sprint Snapshots'[Size])
                ,  _Last3Sprints
                , 'Sprint Snapshots'[Column] = "Done"
            )
        , 3)

    return
        _AvgPointsDelivered +0&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 10:18:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-size-delivered-per-person-for-the-last-3-sprints/m-p/3574241#M137787</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2023-12-08T10:18:17Z</dc:date>
    </item>
  </channel>
</rss>

