<?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: Calculate time (days) status per item even if status goes back to previous used status. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764399#M85811</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again for your help on my STATUS question&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can I (may I) I ask you 2 related questions, something I didn’t think of?&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I see now that the TotalDays went up&amp;nbsp;&lt;BR /&gt;In the example below 278 days, but from May 23rd till Today is only 113 days&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I found out that, this was is caused by double counting. I have some Items that were changed twice on the same day and also calculated twice. Would it be possible to count the first one on that day, with a 0 (Zero)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks, Emoes&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 12:51:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-13T12:51:42Z</dc:date>
    <item>
      <title>Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764029#M85782</link>
      <description>&lt;P&gt;Hello, community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope I can get some help on a topic I’m already struggling with for a long time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I already had some help, but the result is not what I would expect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My question is around the time a certain item was in a certain status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have items in an overview that come in the list in a certain status and move status FORWARD but also BACK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to know two things.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Total Time the item is in the list is working (see column TotalDays)&lt;BR /&gt;&lt;/SPAN&gt;This is using the following code:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TotalDays = 
VAR _closingcount =
    CALCULATE (
        COUNT ( 'Test Data'[Status] ),
        FILTER (
            'Test Data',
            'Test Data'[Items.Id] = EARLIER ( 'Test Data'[Items.Id] )
                &amp;amp;&amp;amp; 'Test Data'[Status] = "5. Closing"
        )
    )
VAR _maxdate =
    CALCULATE (
        MAX ( 'Test Data'[Versions.properties.Created.Element:Text] ),
        FILTER (
            'Test Data',
            'Test Data'[Items.Id] = EARLIER ( 'Test Data'[Items.Id] )
        )
    )
VAR _days =
    CALCULATE (
        SUM ( 'Test Data'[DaysInSinceStart] ),
        FILTER (
            'Test Data',
            'Test Data'[Items.Id] = EARLIER ( 'Test Data'[Items.Id] )
        )
    )
RETURN
    IF (
        ISBLANK ( _closingcount ),
        _days + DATEDIFF ( _maxdate, TODAY(), DAY ),
        _days
    )​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;I would like to know How long a has been (or IS) in a certain status.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you look at the example below, “Item A” in column “DaysInSinceStart” should all be one cell higher and the last cell should contain the time between June 9th and the today date (base on the last Column this should be September 12th)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would expect the following&amp;nbsp; result (Using September 12th as TODAY)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I can report for ITEM A, on the days that it was in a certain status. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The used (not providing what is expect code is:)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DaysInSinceStart = 
VAR _predate =
    CALCULATE (
        MAX ( 'Test Data'[Versions.properties.Created.Element:Text] ),
        FILTER (
            'Test Data',
            'Test Data'[Items.Id] = EARLIER ( 'Test Data'[Items.Id] )
                &amp;amp;&amp;amp; 'Test Data'[Versions.properties.Created.Element:Text]
                    &amp;lt; EARLIER ( 'Test Data'[Versions.properties.Created.Element:Text] )
        )
    )
RETURN
    DATEDIFF (
        _predate,
        'Test Data'[Versions.properties.Created.Element:Text],
        DAY
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anyone please help me get this right calculated?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have created a new PBIX File (In&amp;nbsp;&lt;A href="http://hallo%20ome%20jan%20en%20tante%20marlies%2C%20gecondoleerd%20met%20het%20overlijden%20van%20cindy.%20via%20deze%20%28onpersoonlijke%29%20manier%20willen%20wij%20jullie%20sterkte%20wensen%20in%20deze%20moeilijke%20tijd.%20mijn%20ouders%20hebben%20ons%20zojuist%20op%20de%20hoogte%20gebracht%20van%20dit%20trieste%20nieuws.%20ook%20onze%20condoleance%20voor%20maicy%2C%20claudia%20en%20robert.xn--%20alex%2C%20saskia%20en%20julia%20-qv60a/" target="_self" rel="nofollow noopener noreferrer"&gt;Dropbox&lt;/A&gt;, I’m unable to connect the PBIX (or other attachments to this post)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Emoes&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 10:07:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764029#M85782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T10:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764078#M85790</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please use&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;DaysInSinceStart =
VAR CurrentDate = 'Test Data'[Versions.properties.Created.Element:Text]
VAR CurrentItemTable =
    CALCULATETABLE (
        'Test Data',
        ALLEXCEPT ( 'Test Data', 'Test Data'[Items.Title] )
    )
VAR TableAfter =
    FILTER (
        CurrentItemTable,
        'Test Data'[Versions.properties.Created.Element:Text] &amp;gt; CurrentDate
    )
VAR NextDate =
    COALESCE (
        MINX ( TableAfter, 'Test Data'[Versions.properties.Created.Element:Text] ),
        TODAY ()
    )
RETURN
    DATEDIFF ( CurrentDate, NextDate, DAY )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Sep 2022 10:33:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764078#M85790</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-13T10:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764144#M85794</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wow, thanks for your help, this is exactly what I needed.&lt;/P&gt;&lt;P&gt;Thanks for your quick reply and support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emoes.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 10:57:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764144#M85794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T10:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764399#M85811</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again for your help on my STATUS question&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can I (may I) I ask you 2 related questions, something I didn’t think of?&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I see now that the TotalDays went up&amp;nbsp;&lt;BR /&gt;In the example below 278 days, but from May 23rd till Today is only 113 days&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I found out that, this was is caused by double counting. I have some Items that were changed twice on the same day and also calculated twice. Would it be possible to count the first one on that day, with a 0 (Zero)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks, Emoes&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 12:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764399#M85811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T12:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764415#M85814</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;1. I don't see this example.&lt;/P&gt;
&lt;P&gt;2. Do you have a time column?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 12:52:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764415#M85814</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-13T12:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764628#M85823</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the time available.&lt;/P&gt;&lt;P&gt;I created a new test file (see link to &lt;A href="https://www.dropbox.com/s/xh2hf9wpkms20h6/20220913%20-%20Days%20per%20Status%20-%20Test%28Updated%29.pbix?dl=0" target="_self"&gt;dropbox&lt;/A&gt;, becuase I can't add files to this post, I don't kno why)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Emoes&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 14:05:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764628#M85823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T14:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764670#M85828</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry I left the office already.&lt;/P&gt;
&lt;P&gt;This shall solve the problem of the ties. Still O did not understand the other problem&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DaysInSinceStart =&lt;BR /&gt;VAR CurrentTime = 'Test Data'[Time]&lt;BR /&gt;VAR CurrentDate = 'Test Data'[Versions.properties.Created.Element:Text]&lt;BR /&gt;VAR CurrentItemTable =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;'Test Data',&lt;BR /&gt;ALLEXCEPT ( 'Test Data', 'Test Data'[Items.Title] )&lt;BR /&gt;)&lt;BR /&gt;VAR TableAfter =&lt;BR /&gt;FILTER (&lt;BR /&gt;CurrentItemTable,&lt;BR /&gt;'Test Data'[Versions.properties.Created.Element:Text] &amp;gt; CurrentDate&lt;BR /&gt;&amp;amp;&amp;amp; 'Test Data'[Time] &amp;lt; CurrentTime&lt;BR /&gt;)&lt;BR /&gt;VAR NextDate =&lt;BR /&gt;COALESCE (&lt;BR /&gt;MINX ( TableAfter, 'Test Data'[Versions.properties.Created.Element:Text] ),&lt;BR /&gt;TODAY ()&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;DATEDIFF ( CurrentDate, NextDate, DAY )&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 14:16:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764670#M85828</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-13T14:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764684#M85829</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No problem I appreciate your help.&lt;/P&gt;&lt;P&gt;But I tried the formule and the days are now more worse.&lt;/P&gt;&lt;P&gt;Let me also take a closer look at my Test data tommorow.&lt;/P&gt;&lt;P&gt;Emoes&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 14:23:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764684#M85829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T14:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764749#M85844</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll have a look at it tomorrow as well. And you are right I think the time solution is not correct. I'll find something no worries.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 14:54:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2764749#M85844</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-13T14:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2765974#M85906</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The easiest way is to create a DateTime column as follows&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;DateTime = 'Test Data'[Versions.properties.Created.Element:Text.1] + 'Test Data'[Versions.properties.Created.Element:Text.2]&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;DaysInSinceStart = 
VAR CurrentDate = 'Test Data'[DateTime]
VAR CurrentItemTable =
    CALCULATETABLE (
        'Test Data',
        ALLEXCEPT ( 'Test Data', 'Test Data'[Items.Title] )
    )
VAR TableAfter =
    FILTER (
        CurrentItemTable,
        'Test Data'[DateTime] &amp;gt; CurrentDate
    )
VAR NextDate =
    COALESCE (
        MINX ( TableAfter, 'Test Data'[DateTime] ),
        TODAY ()
    )
RETURN
    DATEDIFF ( CurrentDate, NextDate, DAY )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Sep 2022 04:27:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2765974#M85906</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-14T04:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2766242#M85918</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is absolutely fabulous, great. And a big thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don’t want to place questions in question, but to add to the story.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Source file has a Date and Time column. Format like: “2022-03-29T11:09:42” (without the “”) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I placed my first request (and test file) I had transformed the Date/Time column only to a Date column. “2022-03-29”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When you asked me for the Time, I used the SPLIT function to split (on the “T”) the Date and Time to two columns (Date and Time)” 2022-03-29” &amp;nbsp;and “11:09:42”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Would it not be better not to transform the source data, and load the date/time column in its original format, and do the “calculation” on that column? &amp;nbsp;“2022-03-29T11:09:42”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Emoes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 06:47:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2766242#M85918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-14T06:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate time (days) status per item even if status goes back to previous used status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2766834#M85965</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes exactly. No need to perform any transformation just use the original column. However, the Date Only column might be required for other calculations. In this case you can create a new column using DATEVALUE function.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 09:50:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-time-days-status-per-item-even-if-status-goes-back-to/m-p/2766834#M85965</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-14T09:50:49Z</dc:date>
    </item>
  </channel>
</rss>

