<?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: Max Date To Current Date With Filtered Status in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Date-To-Current-Date-With-Filtered-Status/m-p/3634149#M140582</link>
    <description>&lt;P&gt;hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;can you clear your requirnment becuase&amp;nbsp;&lt;BR /&gt;one you mention&amp;nbsp;&lt;STRONG&gt;MAX "physical date" to "Price Approved Date"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;"physical date" to todays date&amp;nbsp;&lt;/STRONG&gt;with condition&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;not including "received pricing" .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in above code you did not mention TOADY() date in entire code so i'm little confuse here&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 19:35:41 GMT</pubDate>
    <dc:creator>Dangar332</dc:creator>
    <dc:date>2024-01-11T19:35:41Z</dc:date>
    <item>
      <title>Max Date To Current Date With Filtered Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Date-To-Current-Date-With-Filtered-Status/m-p/3634109#M140580</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have physical date, Price Approved Date&lt;img /&gt; and workflow status. I am needing the MAX "physical date", "Price Approved Date" with the workflow status not including "received pricing".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;How many days between the max "physical date" to 'Price Approved Date" not including the workflow status "received pricing."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise. Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this code but got an error:&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;statusG&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;cr93f_cpsoo&lt;/SPAN&gt;&lt;SPAN&gt;[Workflow Status]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;statusG&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"-Received Pricing"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&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;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;cr93f_cpsoo&lt;/SPAN&gt;&lt;SPAN&gt;[Physical Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;cr93f_cpsoo&lt;/SPAN&gt;&lt;SPAN&gt;[PriceApproved.date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Error:&amp;nbsp;Too many arguments were passed to the MAX function. The maximum argument count for the function is 2.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Jan 2024 20:02:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Date-To-Current-Date-With-Filtered-Status/m-p/3634109#M140580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-11T20:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date To Current Date With Filtered Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Date-To-Current-Date-With-Filtered-Status/m-p/3634149#M140582</link>
      <description>&lt;P&gt;hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;can you clear your requirnment becuase&amp;nbsp;&lt;BR /&gt;one you mention&amp;nbsp;&lt;STRONG&gt;MAX "physical date" to "Price Approved Date"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;"physical date" to todays date&amp;nbsp;&lt;/STRONG&gt;with condition&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;not including "received pricing" .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in above code you did not mention TOADY() date in entire code so i'm little confuse here&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 19:35:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Date-To-Current-Date-With-Filtered-Status/m-p/3634149#M140582</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-01-11T19:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date To Current Date With Filtered Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Date-To-Current-Date-With-Filtered-Status/m-p/3634198#M140585</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize. It is Max "Physical Date" to "Price Approved Date" not including the status from workflow status "-Received Pricing" in Days.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 20:03:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Date-To-Current-Date-With-Filtered-Status/m-p/3634198#M140585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-11T20:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date To Current Date With Filtered Status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Date-To-Current-Date-With-Filtered-Status/m-p/3638633#M140826</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This dax function error occurs because you have added two fields to the Max() function.&lt;/P&gt;
&lt;P&gt;You can use the following dax:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF(
    MAX('cr93f_cpsoo'[Workflow.Status])="-Received Pricing",
    DATEDIFF(
        MAX('cr93f_cpsoo'[Physical Date]),MAX('cr93f_cpsoo'[PriceApproved.date]),DAY))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 10:11:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Date-To-Current-Date-With-Filtered-Status/m-p/3638633#M140826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-15T10:11:35Z</dc:date>
    </item>
  </channel>
</rss>

