<?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: Extracting top 1 information to a card in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705758#M82040</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;You are still concatenating using &amp;amp; therefore the results will be a text. Please give me an example of what&amp;nbsp;are trying to achieve.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 08:35:07 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-08-17T08:35:07Z</dc:date>
    <item>
      <title>Extracting top 1 information to a card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2696683#M81405</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 4 recruitment campaigns and want to display on a card the campaign that is producing the most outstanding employees in the last 3 years.&lt;BR /&gt;&lt;BR /&gt;So far I have a measure that returns the total number of outstanding employees across all campaigns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Outstanding employees = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Recruitment Data'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'DIM Performance'[PerformanceID]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; (&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;() - &lt;/SPAN&gt;&lt;SPAN&gt;1095&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Each employee has a PerformanceID where 3 = 'Outstanding'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I put this into a table I get:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If I then add a 'Recruitment campaign' column I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Ultimately, I want my card to display "Campaign 1, 281" however I can't get my head the way to do this. I assume it may be using the TOPN function and but can't get my head around the way to approach this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help would be greatly appreciated.&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 06:19:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2696683#M81405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-12T06:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting top 1 information to a card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2696703#M81406</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Best Campaign =
VAR SelectedCampaigns =
    ALLSELECTED ( 'Recruitment Data'[RecruitmentScheme] )
VAR T1 =
    ADDCOLUMNS ( SelectedCampaigns, "@Outstanding", [Outstanding employees] )
VAR T2 =
    TOPN ( 1, T1, [@Outstanding] )
RETURN
    CONCATENATEX ( T2, [RecruitmentScheme] &amp;amp; ", " &amp;amp; [@Outstanding] )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Aug 2022 06:28:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2696703#M81406</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-12T06:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting top 1 information to a card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2696723#M81408</link>
      <description>&lt;P&gt;Perfect! I can't say I understand the code yet (although I will put in the work to do so) but worked exactly as I'd hoped.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 06:40:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2696723#M81408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-12T06:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting top 1 information to a card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705373#M82020</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the same problem and the code is really usefeul, but my value will be contains decimal, after applying the code, it shown text, how should I change it to whole number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 07:07:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705373#M82020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-17T07:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting top 1 information to a card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705444#M82024</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can replace CONCATENATEX with MAXX and delete the delimiter part&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 07:24:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705444#M82024</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-17T07:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting top 1 information to a card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705652#M82032</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RETURN
    MAXX( T2, 'Category list'[Category] &amp;amp; ", " &amp;amp; [@TotalGas] &amp;amp; " kWh")&lt;/LI-CODE&gt;&lt;P&gt;Is it something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 08:09:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705652#M82032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-17T08:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting top 1 information to a card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705758#M82040</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You are still concatenating using &amp;amp; therefore the results will be a text. Please give me an example of what&amp;nbsp;are trying to achieve.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 08:35:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705758#M82040</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-17T08:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting top 1 information to a card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705868#M82048</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved it!&amp;nbsp;&lt;BR /&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 08:57:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-top-1-information-to-a-card/m-p/2705868#M82048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-17T08:57:29Z</dc:date>
    </item>
  </channel>
</rss>

