<?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: Get the subject in which students scored the max marks using DAX Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2512335#M69724</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this,&lt;/P&gt;
&lt;P&gt;create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;maxmarks = CALCULATE( MAX('Table'[Marks]),ALLEXCEPT('Table','Table'[ID]))&lt;/LI-CODE&gt;
&lt;P&gt;then create the table below,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;output table = FILTER('Table','Table'[Marks]=[maxmarks])&lt;/LI-CODE&gt;
&lt;P&gt;result&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 06:24:03 GMT</pubDate>
    <dc:creator>v-xiaotang</dc:creator>
    <dc:date>2022-05-13T06:24:03Z</dc:date>
    <item>
      <title>Get the subject in which students scored the max marks using DAX Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2505129#M69340</link>
      <description>&lt;P&gt;Consider the Table below&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Subject&lt;/TD&gt;&lt;TD&gt;Marks&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Maths&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Science&lt;/TD&gt;&lt;TD&gt;68&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;TD&gt;95&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Hindi&lt;/TD&gt;&lt;TD&gt;83&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;SST&lt;/TD&gt;&lt;TD&gt;72&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Maths&lt;/TD&gt;&lt;TD&gt;98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Science&lt;/TD&gt;&lt;TD&gt;72&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Hindi&lt;/TD&gt;&lt;TD&gt;68&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;SST&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i Need to find the &lt;STRONG&gt;subject&lt;/STRONG&gt; in which student has scored &lt;STRONG&gt;max marks&lt;/STRONG&gt;. Please help with DAX to achieve this&lt;BR /&gt;Expected Output&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Max Marks&lt;/TD&gt;&lt;TD&gt;Subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;95&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;98&lt;/TD&gt;&lt;TD&gt;Maths&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:06:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2505129#M69340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-10T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get the subject in which students scored the max marks using DAX Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2505263#M69350</link>
      <description>&lt;P&gt;You can do this with a couple of measures&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Top Subject = CONCATENATEX( TOPN( 1, 'Table',  'Table'[Marks]), 'Table'[Subject], ", ")

Top Marks = MAX('Table'[Marks])&lt;/LI-CODE&gt;&lt;P&gt;In case of ties this will return a comma separated list of subjects which shared the same top marks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 14:57:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2505263#M69350</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-05-10T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get the subject in which students scored the max marks using DAX Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2506650#M69426</link>
      <description>&lt;P&gt;Thanks John what if i just need to get the subject in which student scored the max marks via measure&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 06:40:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2506650#M69426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-11T06:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get the subject in which students scored the max marks using DAX Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2506651#M69427</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks John what if i just need to get the subject in which student scored the max marks via measure&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 06:40:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2506651#M69427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-11T06:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get the subject in which students scored the max marks using DAX Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2512335#M69724</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this,&lt;/P&gt;
&lt;P&gt;create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;maxmarks = CALCULATE( MAX('Table'[Marks]),ALLEXCEPT('Table','Table'[ID]))&lt;/LI-CODE&gt;
&lt;P&gt;then create the table below,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;output table = FILTER('Table','Table'[Marks]=[maxmarks])&lt;/LI-CODE&gt;
&lt;P&gt;result&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 06:24:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-subject-in-which-students-scored-the-max-marks-using-DAX/m-p/2512335#M69724</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-05-13T06:24:03Z</dc:date>
    </item>
  </channel>
</rss>

