<?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 Return the more repeated value into a column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-more-repeated-value-into-a-column/m-p/1831264#M38941</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a DAX function to get and return the more repeated value into a column ?&lt;/P&gt;&lt;P&gt;For example, I have MyTable with Country column like it:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;France&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;France&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;England&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;England&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;England&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like this function return me England.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you a solution ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Charlie&lt;/P&gt;</description>
    <pubDate>Sat, 08 May 2021 09:46:05 GMT</pubDate>
    <dc:creator>Charlie42</dc:creator>
    <dc:date>2021-05-08T09:46:05Z</dc:date>
    <item>
      <title>Return the more repeated value into a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-more-repeated-value-into-a-column/m-p/1831264#M38941</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a DAX function to get and return the more repeated value into a column ?&lt;/P&gt;&lt;P&gt;For example, I have MyTable with Country column like it:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;France&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;France&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;England&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;England&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;England&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like this function return me England.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you a solution ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Charlie&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 09:46:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-more-repeated-value-into-a-column/m-p/1831264#M38941</guid>
      <dc:creator>Charlie42</dc:creator>
      <dc:date>2021-05-08T09:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Return the more repeated value into a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-more-repeated-value-into-a-column/m-p/1831272#M38942</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="300791" data-lia-user-login="Charlie42" class="lia-mention lia-mention-user"&gt;Charlie42&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure whether I understood your question correctly, but I assume you want to have a one-column table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below picture and the formula that creates a new table.&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;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;New Table =&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;VAR countingrows =&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SUMMARIZE (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'Table',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'Table'[Column1],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"rowcount", CALCULATE ( COUNTROWS ( 'Table' ) )&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;VAR maxcountrows =&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MAXX ( countingrows, [rowcount] )&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;VAR filteronlymaxcount =&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FILTER ( countingrows, [rowcount] = maxcountrows )&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SUMMARIZE ( filteronlymaxcount, 'Table'[Column1] )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Linkedin: linkedin.com/in/jihwankim1975/&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Twitter: twitter.com/Jihwan_JHKIM&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 10:26:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-more-repeated-value-into-a-column/m-p/1831272#M38942</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-05-08T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Return the more repeated value into a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-more-repeated-value-into-a-column/m-p/1831463#M38953</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="300791" data-lia-user-login="Charlie42" class="lia-mention lia-mention-user"&gt;Charlie42&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Add a new table with the following code to get the country name that occurs the highest # of times.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECTCOLUMNS(
	TOPN (
	    1,
	    ADDCOLUMNS ( ALL ( Table5[Country] ), "CC", CALCULATE ( COUNTROWS ( Table5 ) ) ),
	    [cc]
	),
	"Top Country", Table5[Country]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;IF you want to add a column to the existing table, you can paste the same code into a new column:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&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;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 16:59:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-more-repeated-value-into-a-column/m-p/1831463#M38953</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-05-08T16:59:36Z</dc:date>
    </item>
  </channel>
</rss>

