<?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: Dax Help Needed Comparison of Results in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3614973#M139757</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="505917" data-lia-user-login="kballar1" class="lia-mention lia-mention-user"&gt;kballar1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question about calculating the date interval, here is the method I provided:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some dummy data&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;Create a measure, query the start date, end date of the workflow, and calculate the date interval.&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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date intervals = var start_date = CALCULATE(MAX('Table'[Physical Date]), FILTER(ALL('Table'), 'Table'[Product ID] = MAX('Table'[Product ID]) &amp;amp;&amp;amp; 'Table'[Workflow Status] = "-waiting on approval"))

var end_date = CALCULATE(MAX('Table'[Physical Date]), FILTER(ALL('Table'), 'Table'[Product ID] = MAX('Table'[Product ID]) &amp;amp;&amp;amp; 'Table'[Workflow Status] = "-Received Pricing"))

RETURN DATEDIFF(start_date, end_date, DAY)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 08:34:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-04T08:34:09Z</dc:date>
    <item>
      <title>Dax Help Needed Comparison of Results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3613958#M139717</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have a physical date column and a workflow status column that has several different statuses such as "waiting on approval" etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to compare the physical date with the workflow status "Received Pricing" in order to find out how many days are between the two.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Basically how many days it took to reach the workflow status of "received pricing". Wanting to know how long it took to reach that approval status.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 19:37:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3613958#M139717</guid>
      <dc:creator>kballar1</dc:creator>
      <dc:date>2024-01-03T19:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help Needed Comparison of Results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3613982#M139721</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="505917" data-lia-user-login="kballar1" class="lia-mention lia-mention-user"&gt;kballar1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you share some sample data with the desired output to have a clear understanding of your question?&lt;BR /&gt;Mention whether you want a calculated column or measure.&lt;BR /&gt;You can either paste your data in the reply box or&amp;nbsp;save it in OneDrive, Google Drive, or any other cloud-sharing platform and share the link here.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 19:58:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3613982#M139721</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2024-01-03T19:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help Needed Comparison of Results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3614059#M139724</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am looking at creating a measure. Wanting to know how many days occurred between the start date and the "received pricing" status in the workflow status column&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 20:47:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3614059#M139724</guid>
      <dc:creator>kballar1</dc:creator>
      <dc:date>2024-01-03T20:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help Needed Comparison of Results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3614973#M139757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="505917" data-lia-user-login="kballar1" class="lia-mention lia-mention-user"&gt;kballar1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question about calculating the date interval, here is the method I provided:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some dummy data&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;Create a measure, query the start date, end date of the workflow, and calculate the date interval.&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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date intervals = var start_date = CALCULATE(MAX('Table'[Physical Date]), FILTER(ALL('Table'), 'Table'[Product ID] = MAX('Table'[Product ID]) &amp;amp;&amp;amp; 'Table'[Workflow Status] = "-waiting on approval"))

var end_date = CALCULATE(MAX('Table'[Physical Date]), FILTER(ALL('Table'), 'Table'[Product ID] = MAX('Table'[Product ID]) &amp;amp;&amp;amp; 'Table'[Workflow Status] = "-Received Pricing"))

RETURN DATEDIFF(start_date, end_date, DAY)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 08:34:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3614973#M139757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-04T08:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help Needed Comparison of Results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3623792#M140115</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have to create the difference between the physical date and the created on date, using the the "received pricing" status in the workflow status.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am needing to know how many days it took to get to that specific status("Received pricing" in the workflow status columns-which has multiple different status types).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;so basically how many days between physical date to created date with the filter "received pricing" in the workflow status column.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 20:00:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3623792#M140115</guid>
      <dc:creator>kballar1</dc:creator>
      <dc:date>2024-01-08T20:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help Needed Comparison of Results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3625352#M140163</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="505917" data-lia-user-login="kballar1" class="lia-mention lia-mention-user"&gt;kballar1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;For your question, try the following：&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some dummy data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;“Table”&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
    var physical_date = 
        SELECTEDVALUE(
            'Table'[Physical Date]
        )
    var createdon_date = 
        SELECTEDVALUE(
            'Table'[Createdon.date]
        )
RETURN 
    IF(
        SELECTEDVALUE('Table'[Workflow Status]) = "-Received Pricing", 
        DATEDIFF(physical_date, createdon_date, DAY), 
        BLANK()
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the result&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 08:38:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3625352#M140163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-09T08:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Help Needed Comparison of Results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3625984#M140225</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="505917" data-lia-user-login="kballar1" class="lia-mention lia-mention-user"&gt;kballar1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Without sharing all the columns that are involved in the logic, it's won't possible to come out with a working solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sharing a dummy Power BI file representing your scenario would be beneficial. You can save the Power BI file on Google Drive or any other cloud storage platform and provide the link here. Kindly ensure that permission is granted to open the file.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 11:15:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Help-Needed-Comparison-of-Results/m-p/3625984#M140225</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2024-01-09T11:15:00Z</dc:date>
    </item>
  </channel>
</rss>

