<?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: Remove no of days from Date  with DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2990099#M100568</link>
    <description>&lt;P&gt;I see,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;the issue is with the format ",00" the most direct way to solve this would be to change the columns data type to number. Here is an dax alternative:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure 30 = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_date&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table (19)'&lt;/SPAN&gt;&lt;SPAN&gt;[Column1]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_diff&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table (19)'&lt;/SPAN&gt;&lt;SPAN&gt;[Column2]&lt;/SPAN&gt;&lt;SPAN&gt;))/&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;_date&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;_diff&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;The 14,00 is converted for example to 1400 with VALUE and this is why your numbers don't match.&lt;BR /&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 27 Dec 2022 11:58:52 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2022-12-27T11:58:52Z</dc:date>
    <item>
      <title>Remove no of days from Date  with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2989641#M100527</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;The requirement is i have to remove days(Time) from Date column with DAX(calculated column or measure)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Time Column - Text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Date Column - Date(dd-mm-yy)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example - if the Time column has 2,00 days,&amp;nbsp; Date colum (17th Jan 22) = 17th jan 22-3days&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;the output should come - 15th Jan 22&lt;BR /&gt;&lt;/STRONG&gt;Any advise please?&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 07:14:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2989641#M100527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-27T07:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove no of days from Date  with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2989669#M100530</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can use e.g. MAX/SELECTEDVALUE combined with a simple subtraction:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;dax:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure 30 = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _date = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table (19)'[Column1])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _diff = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Table (19)'[Column2])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;_date - _diff&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;SPAN&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Dec 2022 07:33:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2989669#M100530</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-12-27T07:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove no of days from Date  with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2990014#M100555</link>
      <description>&lt;P&gt;Hi ValtteriN&lt;BR /&gt;I have tried your formula - Getting incorrect result as below screenshot&lt;BR /&gt;Pleae advise further.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 11:27:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2990014#M100555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-27T11:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove no of days from Date  with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2990099#M100568</link>
      <description>&lt;P&gt;I see,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;the issue is with the format ",00" the most direct way to solve this would be to change the columns data type to number. Here is an dax alternative:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure 30 = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_date&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table (19)'&lt;/SPAN&gt;&lt;SPAN&gt;[Column1]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_diff&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table (19)'&lt;/SPAN&gt;&lt;SPAN&gt;[Column2]&lt;/SPAN&gt;&lt;SPAN&gt;))/&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;_date&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;_diff&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;The 14,00 is converted for example to 1400 with VALUE and this is why your numbers don't match.&lt;BR /&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Dec 2022 11:58:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2990099#M100568</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-12-27T11:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove no of days from Date  with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2990221#M100579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the solution. But can we convert same measure to calculated column?&lt;BR /&gt;beacuse when i am creating Measure . i am getting circular dependency error (if we use combination of more calcu,ated columns and measures their might be circular dependency) to avoid can we convert same measure to calculated column ??&lt;BR /&gt;&lt;BR /&gt;i have tried to convert same into calculated column but it is giving incorrect result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 13:33:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-no-of-days-from-Date-with-DAX/m-p/2990221#M100579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-27T13:33:48Z</dc:date>
    </item>
  </channel>
</rss>

