<?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: I need a DAX according to my requirements in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4270669#M169358</link>
    <description>&lt;P&gt;I'm unable to understand RunTime. If I put R&lt;STRONG&gt;unTime in Minutes&lt;/STRONG&gt; replace of &lt;STRONG&gt;RunTIme,&lt;/STRONG&gt; it's showing below error. It's happening for DyelotNoMaxRun &amp;amp; EndTimeMaxRun. Please need your help again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BulkProductionMaxRun =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SELECTEDVALUE('YourTable'[Bulk_Production]),&lt;BR /&gt;'YourTable'[&lt;STRONG&gt;RunTime&lt;/STRONG&gt;] = [MaxRunTime]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;DyelotNoMaxRun =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SELECTEDVALUE('YourTable'[Dyelot No]),&lt;BR /&gt;'YourTable'[&lt;STRONG&gt;RunTime&lt;/STRONG&gt;] = [MaxRunTime]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;EndTimeMaxRun =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SELECTEDVALUE('YourTable'[EndTime]),&lt;BR /&gt;'YourTable'[&lt;STRONG&gt;RunTime&lt;/STRONG&gt;] = [MaxRunTime]&lt;BR /&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;</description>
    <pubDate>Tue, 05 Nov 2024 12:12:14 GMT</pubDate>
    <dc:creator>Emranit</dc:creator>
    <dc:date>2024-11-05T12:12:14Z</dc:date>
    <item>
      <title>I need a DAX according to my requirements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4267144#M169287</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;A href="https://docs.google.com/spreadsheets/d/1H8aF0qeidZr2v0dxrJfaxx-kSbk0Kgcq/edit?usp=sharing&amp;amp;ouid=11391..." target="_self"&gt;https://docs.google.com/spreadsheets/d/1H8aF0qeidZr2v0dxrJfaxx-kSbk0Kgcq/edit?usp=sharing&amp;amp;ouid=11391...&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a DAX which calculate the Maximum RunTime in Minutes among the 10 number of RunTime&lt;BR /&gt;from the Excel file.&lt;/P&gt;&lt;P&gt;Now I need a DAX which visualize that column Bulk_Production and Dyelot No according to maximum&lt;BR /&gt;RunTime. Like:-&lt;/P&gt;&lt;P&gt;## If maximum runtime 549 then visualize from same column&lt;BR /&gt;I] Bulk_Production 597&lt;BR /&gt;II] Dyelot 250890013&lt;/P&gt;&lt;P&gt;III] EndTime 18/8/2024&lt;/P&gt;&lt;P&gt;Can you do it from the link Excel file ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually I need which Dyelot run maximum time, according to maximum runtime need Bulk_production quantity, Dyelot no &amp;amp; End Time. Then I'll able to understand why this dyelot need to run long time as we can calculate with the prduction &amp;amp; Date.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 15:34:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4267144#M169287</guid>
      <dc:creator>Emranit</dc:creator>
      <dc:date>2024-11-01T15:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: I need a DAX according to my requirements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4269529#M169295</link>
      <description>&lt;P&gt;To fulfill your requirement in Power BI using DAX, where you want to retrieve the "Bulk_Production," "Dyelot No," and "EndTime" based on the maximum "RunTime," you can use the following approach:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Calculate the Maximum RunTime&lt;/STRONG&gt;&lt;BR /&gt;First, create a measure to find the maximum runtime:&lt;BR /&gt;&lt;STRONG&gt;DAX&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MaxRunTime = MAX('YourTable'[RunTime])&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Filter Dyelot based on MaxRunTime&lt;/STRONG&gt;&lt;BR /&gt;Next, create a measure to retrieve the "Bulk_Production," "Dyelot No," and "EndTime" associated with this maximum runtime:&lt;BR /&gt;&lt;STRONG&gt;DAX&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;BulkProductionMaxRun = &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CALCULATE(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SELECTEDVALUE('YourTable'[Bulk_Production]),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'YourTable'[RunTime] = [MaxRunTime]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DyelotNoMaxRun = &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CALCULATE(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SELECTEDVALUE('YourTable'[Dyelot No]),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'YourTable'[RunTime] = [MaxRunTime]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EndTimeMaxRun = &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CALCULATE(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SELECTEDVALUE('YourTable'[EndTime]),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'YourTable'[RunTime] = [MaxRunTime]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Replace `'YourTable'` with the actual name of your table in Power BI.&lt;/P&gt;&lt;P&gt;This setup will allow you to display the maximum runtime details on a card or in a table visualization in Power BI. Let me know if you need further adjustments or if you can share any other details about the data structure!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please mark this as solution. appreciates Kuos&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 17:48:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4269529#M169295</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2024-11-04T17:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: I need a DAX according to my requirements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4270359#M169339</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Thanks for the reply from FarhanJeelani&amp;nbsp;, please allow me to provide another insight:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="707183" data-lia-user-login="Emranit" class="lia-mention lia-mention-user"&gt;Emranit&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Regarding the issue you raised, my solution is as follows:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;1.First I have created the following table and the column names and data are the data you have given:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;2. Below are the measure I've created for your needs:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MaxDyelotNo = 
VAR MaxRunTime =CALCULATE( MAX('Table'[RunTime]),ALLSELECTED('Table'))
VAR maxno1=CALCULATE(MAX('Table'[Dyelot No]),FILTER('Table','Table'[RunTime]=MaxRunTime))
RETURN maxno1&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Maxend = CALCULATE(
MAX('Table'[EndTime]),FILTER('Table','Table'[Dyelot No]=[MaxDyelotNo])
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;MaxBulkProductionRun = 
CALCULATE(
MAX('Table'[Bulk_Production]),FILTER('Table','Table'[Dyelot No]=[MaxDyelotNo])
)
&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;3.Here's my final result, which I hope meets your requirements.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Please find the attached pbix relevant to the case.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 08:53:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4270359#M169339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-05T08:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: I need a DAX according to my requirements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4270560#M169353</link>
      <description>&lt;P&gt;Yes, I got the solution. You are really great. Thanks....Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 11:12:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4270560#M169353</guid>
      <dc:creator>Emranit</dc:creator>
      <dc:date>2024-11-05T11:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: I need a DAX according to my requirements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4270669#M169358</link>
      <description>&lt;P&gt;I'm unable to understand RunTime. If I put R&lt;STRONG&gt;unTime in Minutes&lt;/STRONG&gt; replace of &lt;STRONG&gt;RunTIme,&lt;/STRONG&gt; it's showing below error. It's happening for DyelotNoMaxRun &amp;amp; EndTimeMaxRun. Please need your help again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BulkProductionMaxRun =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SELECTEDVALUE('YourTable'[Bulk_Production]),&lt;BR /&gt;'YourTable'[&lt;STRONG&gt;RunTime&lt;/STRONG&gt;] = [MaxRunTime]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;DyelotNoMaxRun =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SELECTEDVALUE('YourTable'[Dyelot No]),&lt;BR /&gt;'YourTable'[&lt;STRONG&gt;RunTime&lt;/STRONG&gt;] = [MaxRunTime]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;EndTimeMaxRun =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SELECTEDVALUE('YourTable'[EndTime]),&lt;BR /&gt;'YourTable'[&lt;STRONG&gt;RunTime&lt;/STRONG&gt;] = [MaxRunTime]&lt;BR /&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;</description>
      <pubDate>Tue, 05 Nov 2024 12:12:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-a-DAX-according-to-my-requirements/m-p/4270669#M169358</guid>
      <dc:creator>Emranit</dc:creator>
      <dc:date>2024-11-05T12:12:14Z</dc:date>
    </item>
  </channel>
</rss>

