<?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: Group if created within 72 hours in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-if-created-within-72-hours/m-p/1878293#M40312</link>
    <description>&lt;P&gt;Thank you for the quick reply. I apologize though, I meant to ask this for in a Measure format.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 16:14:41 GMT</pubDate>
    <dc:creator>GoblinKingdom</dc:creator>
    <dc:date>2021-06-02T16:14:41Z</dc:date>
    <item>
      <title>Group if created within 72 hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-if-created-within-72-hours/m-p/1877888#M40302</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am attempting&amp;nbsp; group my table of IncomingWork items by CustomerID as well as if they have been created within 72hours from the earliest entry. I have created the sample table with data below and how the items should be counted.&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;The end result should have CustomerID 1001 have a total of 2 items, and 2001 a total of 1 item.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not familiar enough with DAX functions to complete this, is anyone able to assist me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 13:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-if-created-within-72-hours/m-p/1877888#M40302</guid>
      <dc:creator>GoblinKingdom</dc:creator>
      <dc:date>2021-06-02T13:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Group if created within 72 hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-if-created-within-72-hours/m-p/1878018#M40308</link>
      <description>&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("ndAxDsAgCEDRuzBrghhsO7bXMN7/Gg52qd/BdH0DfKhVbgliaimqx5SlhYlOkCnJt6iQOD5z/IrSRCXqoIcH/SAnlS06SBfofeGHWG/sWhFTjV2ZG1c0R4yvtg4=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [CustomerID = _t, Date = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"CustomerID", type text}, {"Date", type date}}),
    #"Grouped Rows" = Table.RemoveColumns(Table.Group(#"Changed Type", {"CustomerID"}, {{"ar", each Table.AddIndexColumn(Table.Group(_, "Date", {"All", each _}, 0, (x,y) =&amp;gt; Number.From(Duration.Days(y-x)&amp;gt;=3)),"Index",1)}}), "CustomerID"),
    #"Expanded ar" = Table.RemoveColumns(Table.ExpandTableColumn(#"Grouped Rows", "ar", {"Date", "All", "Index"}, {"Date", "All", "Index"}), "Date"),
    #"Expanded All" = Table.ExpandTableColumn(#"Expanded ar", "All", {"CustomerID", "Date"}, {"CustomerID", "Date"})
in
    #"Expanded All"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 14:44:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-if-created-within-72-hours/m-p/1878018#M40308</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2021-06-02T14:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Group if created within 72 hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-if-created-within-72-hours/m-p/1878293#M40312</link>
      <description>&lt;P&gt;Thank you for the quick reply. I apologize though, I meant to ask this for in a Measure format.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 16:14:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Group-if-created-within-72-hours/m-p/1878293#M40312</guid>
      <dc:creator>GoblinKingdom</dc:creator>
      <dc:date>2021-06-02T16:14:41Z</dc:date>
    </item>
  </channel>
</rss>

