<?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 How to get most productive name with the value? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214120#M52336</link>
    <description>&lt;P&gt;I have made a table visual with following fields and measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Project (Field value)&lt;/P&gt;&lt;P&gt;2. Total Hours Worked = sum(Hours)&lt;/P&gt;&lt;P&gt;3. Total Productive Hours = sum(Productive Hours)&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;&lt;P&gt;I want to get the name of the project which has the highest value of (Total Productive Hours/Total Hours) along with that value in card visual.&lt;/P&gt;&lt;P&gt;Eg (Expected Output) : 0.95&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to get the highest value of&amp;nbsp; (Total Productive Hours/Total Hours) with the following measure but how to fetch project name pertaining to that value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;Most Productive Project =&lt;BR /&gt;VAR summarizedTable =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;'Employee Details',&lt;BR /&gt;'Employee Details'[Project],&lt;BR /&gt;"divides", DIVIDE ( [Total Productive Hours], [Total Hours Worked], 0 )&lt;BR /&gt;),&lt;BR /&gt;'Employee Details'[Project] &amp;lt;&amp;gt; "Free Time"&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;MAXX ( summarizedTable, [divides] )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I got following result with this measure:&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;How do I fetch project name pertaining to this value?? Like Eg:-&amp;nbsp; 0.95&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 12:58:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-08T12:58:46Z</dc:date>
    <item>
      <title>How to get most productive name with the value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214120#M52336</link>
      <description>&lt;P&gt;I have made a table visual with following fields and measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Project (Field value)&lt;/P&gt;&lt;P&gt;2. Total Hours Worked = sum(Hours)&lt;/P&gt;&lt;P&gt;3. Total Productive Hours = sum(Productive Hours)&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;&lt;P&gt;I want to get the name of the project which has the highest value of (Total Productive Hours/Total Hours) along with that value in card visual.&lt;/P&gt;&lt;P&gt;Eg (Expected Output) : 0.95&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to get the highest value of&amp;nbsp; (Total Productive Hours/Total Hours) with the following measure but how to fetch project name pertaining to that value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;Most Productive Project =&lt;BR /&gt;VAR summarizedTable =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;'Employee Details',&lt;BR /&gt;'Employee Details'[Project],&lt;BR /&gt;"divides", DIVIDE ( [Total Productive Hours], [Total Hours Worked], 0 )&lt;BR /&gt;),&lt;BR /&gt;'Employee Details'[Project] &amp;lt;&amp;gt; "Free Time"&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;MAXX ( summarizedTable, [divides] )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I got following result with this measure:&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;How do I fetch project name pertaining to this value?? Like Eg:-&amp;nbsp; 0.95&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 12:58:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214120#M52336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-08T12:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get most productive name with the value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214151#M52337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;Run your measure twice, once for the value and once for the name.&amp;nbsp; Then create a measure that combines the name and the value like Access: 95.&amp;nbsp; This will be the result of your measure which will go into your card, and you will turn off the category name.&amp;nbsp; I use this all the time to mark an update time in a report.&amp;nbsp; "Report last updated: May 5"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 14:03:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214151#M52337</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-11-30T14:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get most productive name with the value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214456#M52359</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp; I had tried creating a measure for project name :&lt;/P&gt;&lt;P&gt;Most Productive Project Name = calculate(max('Employee Details'[Project]), 'Employee Details'[Project]=Most Productive Project&lt;/P&gt;&lt;P&gt;where 'Most Productive Project' is the max value as mentioned in my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this method didn't work!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 16:31:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214456#M52359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-30T16:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get most productive name with the value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214535#M52368</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Anonymous&lt;/a&gt;&amp;nbsp;, Running out the door to an appointment, but try these measures. I created the percentage column in Power Query.&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Most productive percentage = 
VAR _Percent =
    MAX ( Productive[Percentage1] )
return _Percent
============================================
Most productive name = 
VAR _Percent =
    MAX ( Productive[Percentage1] )
VAR _name =
    CALCULATE (
        MAX ( Productive[Project] ),
        FILTER ( ALL ( Productive ), Productive[Percentage1] = _Percent )
    )
RETURN
    _name
=============================================================
Combine 2 measures = Concatenate(CONCATENATE([Most productive name]," is the most productive project  "  ),[Most productive percentage])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 17:11:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214535#M52368</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-11-30T17:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get most productive name with the value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214576#M52372</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;But you have added percentage as a seperate column in the table. I am supposed to achieve the result without the need to add any extra column.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 17:31:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214576#M52372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-30T17:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get most productive name with the value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214666#M52379</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, use MAXX instead of MAX&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Most productive name = 
VAR _Percent =
   maxx(Productive,DIVIDE(Productive[Productive Hours],Productive[Hours]))
VAR _name =
    CALCULATE (
        MAX ( Productive[Project] ),
        FILTER ( ALL ( Productive ), Productive[Percentage1] = _Percent )
    )
RETURN
    _name
===============================
Most productive percentage = 
VAR _Percent =
    maxx(Productive,DIVIDE(Productive[Productive Hours],Productive[Hours]))

    
return _Percent&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 18:30:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214666#M52379</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-11-30T18:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get most productive name with the value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214716#M52381</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Most productive name = 
VAR _Percent =
   maxx(Productive,DIVIDE(Productive[Productive Hours],Productive[Hours]))  //This figures the max value
VAR _name =
    CALCULATE (
        MAX ( Productive[Project] ),
        FILTER ( ALL ( Productive ),DIVIDE(Productive[Productive Hours],Productive[Hours])= _Percent)
    )
RETURN
    _name&lt;/LI-CODE&gt;
&lt;P&gt;Try this, this figures the max value, outside of the calculate, and then goes through the table row by row in the calculate function&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 19:08:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-most-productive-name-with-the-value/m-p/2214716#M52381</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-11-30T19:08:55Z</dc:date>
    </item>
  </channel>
</rss>

