<?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 days count between 2 dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3816466#M149262</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="428944" data-lia-user-login="Wadda7AboUdai" class="lia-mention lia-mention-user"&gt;Wadda7AboUdai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;A href="https://www.powertechtips.com/calculate-days-between-dates-power-bi/" target="_blank" rel="noopener"&gt;To calculate the number of days between the purchase date and the transfer date for each item in Power BI, you can create a new column using the DATEDIFF function&lt;/A&gt;&lt;A href="https://www.powertechtips.com/calculate-days-between-dates-power-bi/" target="_blank" rel="noopener"&gt;1&lt;/A&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Calculate-Days-between-OrderDate-per-Customer-where-Order-date/m-p/124594" target="_blank" rel="noopener"&gt;2&lt;/A&gt;. Here’s an example of how you might write this:&lt;/P&gt;&lt;PRE&gt;Days Count = 
CALCULATE(
    DATEDIFF(
        MINX(FILTER(Table1, Table1[type] = 3), Table1[date]), 
        MAXX(FILTER(Table1, Table1[type] = 22), Table1[date]), 
        DAY
    ),
    ALLEXCEPT(Table1, Table1[item], Table1[transaction number], Table1[branch])
)&lt;/PRE&gt;&lt;P&gt;In this formula, Table1 is the name of your table. This formula calculates the number of days between the minimum date (purchase date) and the maximum date (transfer date) for each combination of item, transaction number, and branch. &lt;A href="https://www.powertechtips.com/calculate-days-between-dates-power-bi/" target="_blank" rel="noopener"&gt;The ALLEXCEPT function is used to remove any filters that might limit the rows being evaluated, except for the filters on the item, transaction number, and branch columns&lt;/A&gt;&lt;A href="https://www.powertechtips.com/calculate-days-between-dates-power-bi/" target="_blank" rel="noopener"&gt;1&lt;/A&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Calculate-Days-between-OrderDate-per-Customer-where-Order-date/m-p/124594" target="_blank" rel="noopener"&gt;2&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Please replace Table1 with your actual table name. If you need further assistance or have more specific requirements, feel free to ask! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 07 Apr 2024 08:53:48 GMT</pubDate>
    <dc:creator>AnalyticsWizard</dc:creator>
    <dc:date>2024-04-07T08:53:48Z</dc:date>
    <item>
      <title>calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3811942#M149076</link>
      <description>&lt;P&gt;Hello Everyone&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate days starts with item purchese date to item transfer date , items can be more than ones in the table it means can be purchesd more than ones and for all branches , I want to calculate the days&amp;nbsp; for each branch and sorted by dates if there are more than one purches order&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the source table&amp;nbsp;&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;item&lt;/TD&gt;&lt;TD&gt;transaction number&lt;/TD&gt;&lt;TD&gt;type&lt;/TD&gt;&lt;TD&gt;date&lt;/TD&gt;&lt;TD&gt;decs&lt;/TD&gt;&lt;TD&gt;branch&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;01-01-2024&lt;/TD&gt;&lt;TD&gt;purchase order&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;10-01-2024&lt;/TD&gt;&lt;TD&gt;Transfer order&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;02&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;07-01-2024&lt;/TD&gt;&lt;TD&gt;purchase order&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;02&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;14-01-2024&lt;/TD&gt;&lt;TD&gt;transfer&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;03&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;01-01-2024&lt;/TD&gt;&lt;TD&gt;purchase&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;04&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;01-01-2024&lt;/TD&gt;&lt;TD&gt;purchase&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;03&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;13-01-2024&lt;/TD&gt;&lt;TD&gt;transfer&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to Get the result like this&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;item&lt;/TD&gt;&lt;TD&gt;transaction number&lt;/TD&gt;&lt;TD&gt;branch&lt;/TD&gt;&lt;TD&gt;Days Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;9&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;02&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;04&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 20:40:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3811942#M149076</guid>
      <dc:creator>Wadda7AboUdai</dc:creator>
      <dc:date>2024-04-04T20:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3812076#M149093</link>
      <description>&lt;P&gt;what happened to transaction number 03 ?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 22:32:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3812076#M149093</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-04T22:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3812080#M149095</link>
      <description>&lt;P&gt;still not transferd to branch&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 22:35:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3812080#M149095</guid>
      <dc:creator>Wadda7AboUdai</dc:creator>
      <dc:date>2024-04-04T22:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3812096#M149097</link>
      <description>&lt;P&gt;so the last row should read 04?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, where I come from Jan 1 to Jan 13 is 13 days, not 12 days.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 22:59:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3812096#M149097</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-04T22:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3812841#M149117</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="428944" data-lia-user-login="Wadda7AboUdai" class="lia-mention lia-mention-user"&gt;Wadda7AboUdai&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;, thanks for your attention to this situation. I tried to modify the data myself and implement the result according to the user's request. Please check if it can be improved. Here is my solution:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. create a calculated column to get the number of days between intervals.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Days Count =
VAR PurchaseDate = CALCULATE(MIN('Table'[date]), 'Table'[decs] = "purchase", ALLEXCEPT('Table', 'Table'[item], 'Table'[branch],'Table'[transaction number]))
VAR TransferDate = CALCULATE(MAX('Table'[date]), 'Table'[decs] = "transfer", ALLEXCEPT('Table', 'Table'[item], 'Table'[branch],'Table'[transaction number]))
RETURN
DATEDIFF(PurchaseDate, TransferDate, DAY)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;2. Create a calculation table to get the desired result.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Summary Table =
var _table=
SUMMARIZE(
    'Table',
    'Table'[item],
    'Table'[transaction number],
    'Table'[branch],
    'Table'[Days Count]
)
return
FILTER(
    _table,[Days Count]&amp;lt;&amp;gt;BLANK())&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 08:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3812841#M149117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-05T08:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3814375#M149186</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;thank you for your help&amp;nbsp;&lt;BR /&gt;the table shows nothing , I think I did some thing wrong&amp;nbsp;&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the categoryreferance&amp;nbsp; 3= purchse , 22 = transfer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 19:22:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3814375#M149186</guid>
      <dc:creator>Wadda7AboUdai</dc:creator>
      <dc:date>2024-04-05T19:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3814562#M149193</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="428944" data-lia-user-login="Wadda7AboUdai" class="lia-mention lia-mention-user"&gt;Wadda7AboUdai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this can be a measure. Place [Item], [TransactionNumber] &amp;amp; [Branch] in a table visual along with the following measure:&lt;/P&gt;
&lt;P&gt;Days Count =&lt;BR /&gt;VAR CrrentTransactions = 'inventtransn'&lt;BR /&gt;VAR PurchaseDate =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;MIN ( ' inventtransn'[DATEPHYSICAL] ),&lt;BR /&gt;'inventtransn'[REFERENCECATEGORY] = 3&lt;BR /&gt;)&lt;BR /&gt;VAR TransferDate =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;MAX ( ' inventtransn'[DATEPHYSICAL] ),&lt;BR /&gt;'inventtransn'[REFERENCECATEGORY] = 22&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;NOT ISBLANK ( TransferDate ),&lt;BR /&gt;DATEDIFF ( PurchaseDate, TransferDate, DAY )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 21:27:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3814562#M149193</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-05T21:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3815944#M149231</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;BR /&gt;Thank you sp much for your help this worked fine with me when the item comes one time , when item comes more than one time I want to calculate days between&amp;nbsp;REFERENCECATEGORY 3 and the next&amp;nbsp;REFERENCECATEGORY 22 it means first find the first purchase date and go to next transdate not to last trans date , in the below picture it should calculate 3 time for the same item&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to show me the item 3 times each time how many day different&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 19:21:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3815944#M149231</guid>
      <dc:creator>Wadda7AboUdai</dc:creator>
      <dc:date>2024-04-06T19:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3816417#M149256</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="428944" data-lia-user-login="Wadda7AboUdai" class="lia-mention lia-mention-user"&gt;Wadda7AboUdai&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes that is because in expected result that you have presented, the transaction number is part of the filter context. If you place the transaction number in the result summary table it should work. However, the following should work in both senarios.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Days Count = 
SUMX ( 
    SUMMARIZE ( 
        'inventtransn',
        'inventtransn'[item],
        'inventtransn'[transaction number]
    ),
    VAR PurchaseDate =
        CALCULATE (
            MIN ( 'inventtransn'[DATEPHYSICAL] ),
            'inventtransn'[REFERENCECATEGORY] = 3
        )
    VAR TransferDate =
        CALCULATE (
            MAX ( 'inventtransn'[DATEPHYSICAL] ),
            'inventtransn'[REFERENCECATEGORY] = 22
        )
    RETURN
        IF (
            NOT ISBLANK ( TransferDate ),
            DATEDIFF ( PurchaseDate, TransferDate, DAY )
        )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 07 Apr 2024 07:59:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3816417#M149256</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-07T07:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3816466#M149262</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="428944" data-lia-user-login="Wadda7AboUdai" class="lia-mention lia-mention-user"&gt;Wadda7AboUdai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;A href="https://www.powertechtips.com/calculate-days-between-dates-power-bi/" target="_blank" rel="noopener"&gt;To calculate the number of days between the purchase date and the transfer date for each item in Power BI, you can create a new column using the DATEDIFF function&lt;/A&gt;&lt;A href="https://www.powertechtips.com/calculate-days-between-dates-power-bi/" target="_blank" rel="noopener"&gt;1&lt;/A&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Calculate-Days-between-OrderDate-per-Customer-where-Order-date/m-p/124594" target="_blank" rel="noopener"&gt;2&lt;/A&gt;. Here’s an example of how you might write this:&lt;/P&gt;&lt;PRE&gt;Days Count = 
CALCULATE(
    DATEDIFF(
        MINX(FILTER(Table1, Table1[type] = 3), Table1[date]), 
        MAXX(FILTER(Table1, Table1[type] = 22), Table1[date]), 
        DAY
    ),
    ALLEXCEPT(Table1, Table1[item], Table1[transaction number], Table1[branch])
)&lt;/PRE&gt;&lt;P&gt;In this formula, Table1 is the name of your table. This formula calculates the number of days between the minimum date (purchase date) and the maximum date (transfer date) for each combination of item, transaction number, and branch. &lt;A href="https://www.powertechtips.com/calculate-days-between-dates-power-bi/" target="_blank" rel="noopener"&gt;The ALLEXCEPT function is used to remove any filters that might limit the rows being evaluated, except for the filters on the item, transaction number, and branch columns&lt;/A&gt;&lt;A href="https://www.powertechtips.com/calculate-days-between-dates-power-bi/" target="_blank" rel="noopener"&gt;1&lt;/A&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Calculate-Days-between-OrderDate-per-Customer-where-Order-date/m-p/124594" target="_blank" rel="noopener"&gt;2&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Please replace Table1 with your actual table name. If you need further assistance or have more specific requirements, feel free to ask! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Apr 2024 08:53:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3816466#M149262</guid>
      <dc:creator>AnalyticsWizard</dc:creator>
      <dc:date>2024-04-07T08:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3817074#M149278</link>
      <description>&lt;P&gt;Hi &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;After applied this measure it shows balnk in result table&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 19:32:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3817074#M149278</guid>
      <dc:creator>Wadda7AboUdai</dc:creator>
      <dc:date>2024-04-07T19:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3817085#M149280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="707047" data-lia-user-login="AnalyticsWizard" class="lia-mention lia-mention-user"&gt;AnalyticsWizard&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your Replay , I want to inform you that the transaction number is different between purchase and transfer order&amp;nbsp;&lt;/P&gt;&lt;P&gt;the purchase order transaction number can be (scr-10023)&lt;/P&gt;&lt;P&gt;the transfer number can by (scr-2324)&lt;/P&gt;&lt;P&gt;and so on there is no related betwwen them&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 19:48:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3817085#M149280</guid>
      <dc:creator>Wadda7AboUdai</dc:creator>
      <dc:date>2024-04-07T19:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3817109#M149281</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="428944" data-lia-user-login="Wadda7AboUdai" class="lia-mention lia-mention-user"&gt;Wadda7AboUdai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please add the [VOUCHER] column to the detailed table visual and share a screenshot?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 20:28:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3817109#M149281</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-07T20:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3817185#M149289</link>
      <description>&lt;P&gt;showed Blank&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 23:11:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3817185#M149289</guid>
      <dc:creator>Wadda7AboUdai</dc:creator>
      <dc:date>2024-04-07T23:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3819538#M149376</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="428944" data-lia-user-login="Wadda7AboUdai" class="lia-mention lia-mention-user"&gt;Wadda7AboUdai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I meant in the detailed table not the in tge summary table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 12:14:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3819538#M149376</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-08T12:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3820732#M149425</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 18:52:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3820732#M149425</guid>
      <dc:creator>Wadda7AboUdai</dc:creator>
      <dc:date>2024-04-08T18:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3820802#M149428</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="428944" data-lia-user-login="Wadda7AboUdai" class="lia-mention lia-mention-user"&gt;Wadda7AboUdai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the sample data presented in your original post, there was a column called [Transaction Number] that identifies every purchase cycle of each item. In my dax I have used that column which you have replaced, for some reason, with [Voutcher] column.&amp;nbsp;&lt;BR /&gt;please calrify this point.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 19:32:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3820802#M149428</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-08T19:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3820813#M149429</link>
      <description>&lt;P&gt;Hi &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 named that transaction number just to make it more simple to explain the table content&amp;nbsp;&lt;BR /&gt;Voutcher is the same thing has&amp;nbsp; uniqe number for each transaction ,I apologize if I did not explain this more simply&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 19:40:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3820813#M149429</guid>
      <dc:creator>Wadda7AboUdai</dc:creator>
      <dc:date>2024-04-08T19:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3820876#M149431</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="428944" data-lia-user-login="Wadda7AboUdai" class="lia-mention lia-mention-user"&gt;Wadda7AboUdai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Except it is not the same thing. Voucher defines each single transaction. What is required is a column that groups the transactions that belong to each cycle. If such column does not exist then it has to be created. If not coming from the source then I would say that won't be an easy job.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 20:24:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3820876#M149431</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-08T20:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days count between 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3820902#M149433</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;&amp;nbsp;Yes, that is correct. Could the method be to search for the first purchase transaction and then calculate the date Different to transfer order&amp;nbsp; closest to the purchase date?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 20:23:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-count-between-2-dates/m-p/3820902#M149433</guid>
      <dc:creator>Wadda7AboUdai</dc:creator>
      <dc:date>2024-04-08T20:23:00Z</dc:date>
    </item>
  </channel>
</rss>

