<?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: Grouping and Dates Formula in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/443933#M205193</link>
    <description>&lt;P&gt;Can you share your file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Dale&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 07:42:31 GMT</pubDate>
    <dc:creator>v-jiascu-msft</dc:creator>
    <dc:date>2018-06-20T07:42:31Z</dc:date>
    <item>
      <title>Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/437420#M201786</link>
      <description>&lt;P&gt;I have a set of table with repeated SO numbers.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can someone assit me in grouping the SO numbers together in the table with borders, so I can see how many repeated times per SO number. Shown below screenshot. You may provide steps or screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;From the table above, I am using search filter to drill down my SO numbers. Can someone help me to formulate the DAX code/custom collumn to measure &lt;STRONG&gt;Latest.(Date of Change) for&amp;nbsp;&lt;/STRONG&gt;(New Del Value Date )-&amp;nbsp;&lt;STRONG&gt;Earliest.(Date of Change) for&amp;nbsp;&lt;/STRONG&gt;(Old Value Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the result should be number of days= 15 Sept 2018 - 15 June 2018 = &lt;STRONG&gt;92 Days&lt;/STRONG&gt;&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>Tue, 12 Jun 2018 02:12:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/437420#M201786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-12T02:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/439325#M202783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this formula please.&lt;/P&gt;
&lt;PRE&gt;Result =
CALCULATE (
    DATEDIFF (
        MIN ( 'table'[Old Value Date] ),
        MAX ( 'table'[New Del Value Date] ),
        DAY
    ),
    ALLEXCEPT ( 'table', 'table'[Sales Order] )
)
&lt;/PRE&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 03:14:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/439325#M202783</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-06-14T03:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/439380#M202815</link>
      <description>&lt;P&gt;@&amp;nbsp;v-jiascu-msft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying.&lt;/P&gt;&lt;P&gt;However, the formula returns me the value of 122 days, which is incorrect.&lt;/P&gt;&lt;P&gt;92 days should be the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides, can you help me in grouping the SO numbers in table ?&lt;/P&gt;&lt;P&gt;So I can see how many repeated times per SO number. Shown below screenshot. You may provide steps or screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;IMG src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/100517i3B7EEAF0D1CC928B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="image.png" title="image.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 05:20:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/439380#M202815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-14T05:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/439423#M202835</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the data in TEXT mode or share the file? It's a hard work to type so many words.&lt;/P&gt;
&lt;P&gt;1. Can you post a snapshot? It should work in the table visual of the second snapshot of your first&amp;nbsp;post.&lt;/P&gt;
&lt;P&gt;2. What the format of table do you expect? Maybe you can try the following formula.&lt;/P&gt;
&lt;PRE&gt;Table =
SUMMARIZE (
    'salestable',
    'salestable'[Sales Order],
    "Times", COUNT ( 'salestable'[Sales Order] )
)
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 06:04:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/439423#M202835</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-06-14T06:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/439541#M202895</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="28904" data-lia-user-login="v-jiascu-msft" class="lia-mention lia-mention-user"&gt;v-jiascu-msft&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file is propietary.&lt;/P&gt;&lt;P&gt;It will take awhile for me to recreate the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)Below is the screenshot please refer.&lt;/P&gt;&lt;P&gt;The actual result should be 92 days instead of 122days&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;2) As for grouping Sales Order, I am expecting something as of below, darken frame shown below. More with visualization.&lt;/P&gt;&lt;P&gt;If possible to show sum below each sales order group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 08:06:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/439541#M202895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-14T08:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/442675#M204518</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="28904" data-lia-user-login="v-jiascu-msft" class="lia-mention lia-mention-user"&gt;v-jiascu-msft&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you are getting my replies.&lt;/P&gt;&lt;P&gt;Looking forward to hear a solution from you soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 00:40:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/442675#M204518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-19T00:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/442703#M204532</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I modify the old formula. Please try it again.&lt;/P&gt;
&lt;PRE&gt;Result =
VAR minChangeDate =
    CALCULATE ( MIN ( 'Table'[Date of Change] ), ALL ( 'Table' ) )
VAR maxChangeDate =
    CALCULATE ( MAX ( 'Table'[Date of Change] ), ALL ( 'Table' ) )
RETURN
    DATEDIFF (
        CALCULATE (
            MIN ( 'table'[Old Value Date] ),
            FILTER ( ALL ( 'Table' ), 'Table'[Date of Change] = minChangeDate )
        ),
        CALCULATE (
            MAX ( 'table'[New Del Value Date] ),
            FILTER ( ALL ( 'Table' ), 'Table'[Date of Change] = maxChangeDate )
        ),
        DAY
    )
&lt;/PRE&gt;
&lt;P&gt;About grouping:&lt;/P&gt;
&lt;PRE&gt;grouping =
SUMX (
    SUMMARIZE (
        'Table',
        'Table'[Sales Order],
        [Old Value Date],
        [New Del Value Date],
        [Date of Change],
        "Value", [Result]
    ),
    [Value]
)
&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://ibb.co/k2P0LJ" target="_blank"&gt;&lt;IMG src="https://ip1.i.lithium.com/5d9da68aff1ab5adb01dc80320f247d5fb33a990/68747470733a2f2f696d6167652e6962622e636f2f684c4e6e304a2f47726f7570696e675f616e645f44617465735f466f726d756c612e706e67" border="0" alt="Grouping_and_Dates_Formula" /&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Dale&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 01:52:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/442703#M204532</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-06-19T01:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/443919#M205189</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="28904" data-lia-user-login="v-jiascu-msft" class="lia-mention lia-mention-user"&gt;v-jiascu-msft&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you for helping out. However, I still don't get the result. Not too sure why when all script are correct, but when i input the formula I don't get 92 days instead error of 243 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the grouping, that is not the outcome I needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have move on with an alternative visual and analyzing method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you once again.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 07:28:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/443919#M205189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-20T07:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/443933#M205193</link>
      <description>&lt;P&gt;Can you share your file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Dale&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 07:42:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/443933#M205193</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-06-20T07:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/446978#M206774</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="28904" data-lia-user-login="v-jiascu-msft" class="lia-mention lia-mention-user"&gt;v-jiascu-msft&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File has been sent to you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;BDA2&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 03:53:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/446978#M206774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-25T03:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/449211#M207917</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did it work? Can you mark the proper answer as a solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Dale&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 09:42:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/449211#M207917</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-06-27T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping and Dates Formula</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/450850#M208739</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="28904" data-lia-user-login="v-jiascu-msft" class="lia-mention lia-mention-user"&gt;v-jiascu-msft&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes it works. However, for grouping that's not what I want.&lt;/P&gt;&lt;P&gt;For grouping I am expecting the visual in a table form meaning table with darken borders for the same group of sales order, &lt;STRONG&gt;not grouping as a summary by measure.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 01:04:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Grouping-and-Dates-Formula/m-p/450850#M208739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-29T01:04:57Z</dc:date>
    </item>
  </channel>
</rss>

