<?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: TOPN Return One Value Only in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-Return-One-Value-Only/m-p/3652092#M141483</link>
    <description>&lt;P&gt;Well, you will need a "Tie breaker"; so if you have multiple teams you could for instance take the first team by name:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Tries Highest Team = TOPN( 
    1, 
    ALL( 'Team Stats'[Team] )
    , [Total Tries],0
    ,'Team Stats'[team], 1
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you could also show all teams tied for first place, comma sepperated;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Tries Highest Team = 
VAR tms = TOPN( 
    1, 
    ALL( 'Team Stats'[Team] )
    , [Total Tries]
)
RETURN CONCATENATEX(tms, [Team],",")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 16:13:48 GMT</pubDate>
    <dc:creator>sjoerdvn</dc:creator>
    <dc:date>2024-01-22T16:13:48Z</dc:date>
    <item>
      <title>TOPN Return One Value Only</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-Return-One-Value-Only/m-p/3651999#M141480</link>
      <description>&lt;LI-CODE lang="markup"&gt;Tries Highest Team = 
TOPN( 
    1, 
    ALL( 'Team Stats'[Team] ), [Total Tries] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the above in the new Reference Label feature in the New Card Visual&lt;BR /&gt;&lt;BR /&gt;When this returns more than one value, ie. there is a tie then the whole visual breaks, is there a way to amend the DAX above to just show one value?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 15:15:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-Return-One-Value-Only/m-p/3651999#M141480</guid>
      <dc:creator>ajay_gajree</dc:creator>
      <dc:date>2024-01-22T15:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: TOPN Return One Value Only</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-Return-One-Value-Only/m-p/3652092#M141483</link>
      <description>&lt;P&gt;Well, you will need a "Tie breaker"; so if you have multiple teams you could for instance take the first team by name:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Tries Highest Team = TOPN( 
    1, 
    ALL( 'Team Stats'[Team] )
    , [Total Tries],0
    ,'Team Stats'[team], 1
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you could also show all teams tied for first place, comma sepperated;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Tries Highest Team = 
VAR tms = TOPN( 
    1, 
    ALL( 'Team Stats'[Team] )
    , [Total Tries]
)
RETURN CONCATENATEX(tms, [Team],",")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 16:13:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-Return-One-Value-Only/m-p/3652092#M141483</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-01-22T16:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: TOPN Return One Value Only</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-Return-One-Value-Only/m-p/3652102#M141484</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how you want to show only one when there are two result that show top number, but please try something like below if it suits your requirement.&lt;/P&gt;
&lt;P&gt;The second criteria to decide the rank in the below is the team-name ascending order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/index-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank" rel="noopener"&gt;INDEX function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&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;LI-CODE lang="markup"&gt;Tries Highest Team = 
	INDEX(
		1,
		ALL('Team Stats'[Team]),
		ORDERBY(
			[Total Tries],
			DESC,
			'Team Stats'[Team],
			ASC
		)
	)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 16:13:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-Return-One-Value-Only/m-p/3652102#M141484</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-01-22T16:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: TOPN Return One Value Only</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-Return-One-Value-Only/m-p/3664005#M142009</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;, Thanks for sharing this is really helpful&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 10:26:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-Return-One-Value-Only/m-p/3664005#M142009</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-01-27T10:26:09Z</dc:date>
    </item>
  </channel>
</rss>

