<?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 month value where rank = 1 from another Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594832#M138885</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#993300"&gt; '&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#993300"&gt;&lt;SPAN&gt;Table&lt;/SPAN&gt; &lt;SPAN&gt;A&lt;/SPAN&gt;&lt;SPAN&gt;'[Calmonth],&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am not able to input above highlighted table &amp;amp; field after calculate.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It is only showing me Rank &amp;amp; Volume fields.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2023 19:50:02 GMT</pubDate>
    <dc:creator>ankurshah01</dc:creator>
    <dc:date>2023-12-20T19:50:02Z</dc:date>
    <item>
      <title>Get month value where rank = 1 from another Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594448#M138861</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table that shows below data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Calmonth&lt;/TD&gt;&lt;TD&gt;Rank1&lt;/TD&gt;&lt;TD&gt;Volume&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan-23&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb-23&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar-23&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apr-23&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;May-23&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jun-23&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jul-23&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;36&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug-23&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sep-23&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oct-23&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Nov-23&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;42&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Rank1 is a measure.&lt;/P&gt;&lt;P&gt;Now based on above table, i need to get the Calmonth value where Rank1 = 1 in Table B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in this case i will get Feb 2023.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a new column in Table B &amp;amp; tried using Calculate with max &amp;amp; filter (where rank = 1) but it returns always Nov 2023.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;New Column = CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;('Table A'&lt;/SPAN&gt;&lt;SPAN&gt;[Calmonth]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;('Table A'&lt;/SPAN&gt;&lt;SPAN&gt;, 'Table A'&lt;/SPAN&gt;&lt;SPAN&gt;[Rank1]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I tried with different options using Lookup or selectedvalue but not getting required output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to resolve this issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 16:58:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594448#M138861</guid>
      <dc:creator>ankurshah01</dc:creator>
      <dc:date>2023-12-20T16:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get month value where rank = 1 from another Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594785#M138877</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663701" data-lia-user-login="ankurshah01" class="lia-mention lia-mention-user"&gt;ankurshah01&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try below code for column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New Column = 
  CALCULATE(
      'Table A'[Calmonth],
       FILTER(
           all('Table A'[rank]),
           'Table A'[Rank1] = 1
       )
  )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 19:25:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594785#M138877</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-12-20T19:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get month value where rank = 1 from another Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594799#M138880</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above code is not working since, after calculate there needs to be an expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 19:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594799#M138880</guid>
      <dc:creator>ankurshah01</dc:creator>
      <dc:date>2023-12-20T19:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get month value where rank = 1 from another Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594805#M138881</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663701" data-lia-user-login="ankurshah01" class="lia-mention lia-mention-user"&gt;ankurshah01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you clarify What problem you face?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 19:40:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594805#M138881</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-12-20T19:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get month value where rank = 1 from another Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594832#M138885</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#993300"&gt; '&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#993300"&gt;&lt;SPAN&gt;Table&lt;/SPAN&gt; &lt;SPAN&gt;A&lt;/SPAN&gt;&lt;SPAN&gt;'[Calmonth],&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am not able to input above highlighted table &amp;amp; field after calculate.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It is only showing me Rank &amp;amp; Volume fields.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 19:50:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594832#M138885</guid>
      <dc:creator>ankurshah01</dc:creator>
      <dc:date>2023-12-20T19:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get month value where rank = 1 from another Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594856#M138888</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663701" data-lia-user-login="ankurshah01" class="lia-mention lia-mention-user"&gt;ankurshah01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663701" data-lia-user-login="ankurshah01" class="lia-mention lia-mention-user"&gt;ankurshah01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Column =&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var a = 'Table A'[Calmonth]&lt;/P&gt;&lt;P&gt;Return&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALCULATE( a,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Table A'[Rank1] = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or&amp;nbsp;&lt;/P&gt;&lt;P&gt;New column=&lt;/P&gt;&lt;P&gt;Minx(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Table A',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Table A'[Rank1] = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;'Table A'[Calmonth]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 20:14:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594856#M138888</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-12-20T20:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get month value where rank = 1 from another Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594934#M138892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Column =&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var a = 'Table A'[Calmonth]&lt;/P&gt;&lt;P&gt;Return&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALCULATE( a,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Table A'[Rank1] = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;Above code is giving me -- &amp;gt;&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below code is giving me value as Jan 2023 as output --&amp;nbsp;&lt;/P&gt;&lt;P&gt;New column=&lt;/P&gt;&lt;P&gt;Minx(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Table A',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Table A'[Rank1] = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;'Table A'[Calmonth]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 20:47:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3594934#M138892</guid>
      <dc:creator>ankurshah01</dc:creator>
      <dc:date>2023-12-20T20:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get month value where rank = 1 from another Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3595543#M138920</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663701" data-lia-user-login="ankurshah01" class="lia-mention lia-mention-user"&gt;ankurshah01&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;kindly update your&amp;nbsp;&lt;BR /&gt;my rank measure is below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure =
  RANK(
    DENSE,
    ALL('Table'[volume]),
    ORDERBY('Table'[volume],DESC)
  )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;column dax is below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
 CALCULATE(
   MIN('Table'[calmonth]),
   FILTER('Table',[Measure]=1)
 )&lt;/LI-CODE&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;above is work for me&amp;nbsp;&lt;BR /&gt;when i use rankx() instead of Rank() i got error like circular dependency detect&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rank1 = 
RANKX(ALL('Table'[volume]),'Table'[volume],MIN('Table'[volume]))&lt;/LI-CODE&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;so update your rank code if it made from rankx()&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 06:09:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-month-value-where-rank-1-from-another-Table/m-p/3595543#M138920</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-12-21T06:09:14Z</dc:date>
    </item>
  </channel>
</rss>

