<?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: DateDiff until end of month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065722#M106145</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;If you have a sample file please share it's download link.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 08:42:03 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-02-07T08:42:03Z</dc:date>
    <item>
      <title>DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3062268#M105880</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a table with several columns: date, product and status. Each product can have several statuses (working, not working). I'm looking to calculate how long each product stayed in a certain status. For this I have a measure that calculates for each product How long has it been until the next time it changes status and so on.&lt;/P&gt;&lt;P&gt;BUT I have a problem&amp;nbsp;the result obtained does not reflect reality.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;if for example a product A was "working" from 01/01/2021 until 01/05/2021 (4 days difference) in this date it will "Not working".&amp;nbsp;&lt;BR /&gt;but the 02/05/2021 it will be "working" so my measure says me that passed from here 30 days. But actually that is not true. Because if I want to display for the January month how many days was the product "not working" so I'll get the result 30 ! But the reality is that in January the product was 25 days in this status and not 30, the five days have to be in the next month !&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually dax have to understand that he have to stop the sum of days at the end of month if not I'lol get fake data with slicers.&amp;nbsp;&lt;BR /&gt;do you have a solution ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 14:31:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3062268#M105880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-05T14:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3062286#M105883</link>
      <description>&lt;P&gt;I think your table, you can add a calculated column, eomonth(date) and it should gove you the end of month of every respective row date,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 14:49:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3062286#M105883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-05T14:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3062394#M105893</link>
      <description>&lt;P&gt;Ok but what can I do with it after ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 17:19:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3062394#M105893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-05T17:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3062417#M105899</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what is the dax of this measure?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 18:14:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3062417#M105899</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-05T18:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3063239#M105957</link>
      <description>&lt;P&gt;In other words ? I didn't understand&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:20:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3063239#M105957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-06T08:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3063268#M105962</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;&lt;EM&gt;For this I have a &lt;STRONG&gt;measure&lt;/STRONG&gt; that calculates for each product How long has it been until the next time it changes status and so on&lt;/EM&gt;."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What DAX formula have you used for this measure?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:51:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3063268#M105962</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-06T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065524#M106127</link>
      <description>&lt;P&gt;This is my measure :&amp;nbsp;&lt;/P&gt;&lt;P&gt;lastchange=&amp;nbsp;&lt;/P&gt;&lt;P&gt;var currentproduct = table[product]&lt;BR /&gt;var currdate = table[date]&lt;BR /&gt;var maxdate =&amp;nbsp;&lt;/P&gt;&lt;P&gt;MINX(FILTER(Table,Table[Date]&amp;gt;currdate &amp;amp;&amp;amp; Table[product]=currentproduct), table[date])&amp;nbsp;&lt;/P&gt;&lt;P&gt;RETURN&amp;nbsp;&lt;/P&gt;&lt;P&gt;(DATEDIFF(currdate,maxdate,SECOND)/3600)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 07:08:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065524#M106127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-07T07:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065646#M106138</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Seems to me this is a calculated column rather than a measure?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 08:12:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065646#M106138</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T08:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065684#M106141</link>
      <description>&lt;P&gt;Yes you right&amp;nbsp;&lt;/P&gt;&lt;P&gt;but even if it was a measure it not get in count the end of the month and continue to display cumulated values&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 08:27:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065684#M106141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-07T08:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065722#M106145</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;If you have a sample file please share it's download link.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 08:42:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065722#M106145</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T08:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065773#M106148</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I can't because this is confidential data...&lt;/P&gt;&lt;P&gt;but&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is like this (I filtered just to see one product) the result in hours.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example in line 9, the product was in status and line 10 an other status. But meantime this is a new month and if want to display data for December month, it said that there are 264hours between the 27/12/2017 and 07/01/2018. But this is not true because part of the hours in January and not December.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:23:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3065773#M106148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-08T14:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3066088#M106166</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Never asked to share your data. Of course it is confidential. But you can allways create a sample PBIX that contains a data model that simulates your data. Inside import sample data of all invloved tables create the relationships and and create the visual that you are looking for without the required measure(s). This will save for both of us alot of time. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 11:45:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3066088#M106166</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T11:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: DateDiff until end of month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3066627#M106206</link>
      <description>&lt;P&gt;Infortunnaly I can't but i don't think we need this to write a Dax measure&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 15:55:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DateDiff-until-end-of-month/m-p/3066627#M106206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-07T15:55:38Z</dc:date>
    </item>
  </channel>
</rss>

