<?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: Top N reason for the month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1208889#M19433</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I used the Intersect with values on the DAX measure for both of the above tables and it worked for me.&lt;/P&gt;&lt;P&gt;ReasonCount=Calculate(Count(Reason),Intersect(Values(Reason),Values(Date)))&lt;/P&gt;&lt;P&gt;Be careful with the table sequence in intersect they incur different results for different combination.Intersect(T1,T2) is not equal to Intersect(T2,T1).&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2020 10:53:41 GMT</pubDate>
    <dc:creator>bondfranco</dc:creator>
    <dc:date>2020-07-08T10:53:41Z</dc:date>
    <item>
      <title>Top N reason for the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1200223#M19160</link>
      <description>&lt;P&gt;Hi, I need to display Top N reason for the month based to below data model in power BI. Tables: Date ([fulldate,date],[ReportMonth varchar(50) format mmmyy]) ,Reason ([ReasonDate,date],[Reason varchar(500)] The top filter should display top 3 reasons for the month using DAX.It should not display the top 3 reasons on overall count. The filter will be on ReportMonth column to find the top 3 reasons.Appreciate any help.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 11:06:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1200223#M19160</guid>
      <dc:creator>bondfranco</dc:creator>
      <dc:date>2020-07-03T11:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Top N reason for the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1200669#M19172</link>
      <description>&lt;P&gt;Top 3 reasons by what?&amp;nbsp; count ?&amp;nbsp; another field?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 15:07:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1200669#M19172</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-03T15:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Top N reason for the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1200759#M19182</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Those are by count of reason for a particular month.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 16:23:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1200759#M19182</guid>
      <dc:creator>bondfranco</dc:creator>
      <dc:date>2020-07-03T16:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Top N reason for the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1200951#M19189</link>
      <description>&lt;P&gt;This works for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;Measure = 
var m=SELECTEDVALUE('Table'[Month])
var v=SUMMARIZE(FILTER(ALLSELECTED('Table'),'Table'[Month]=m),'Table'[Reason],"Ct",count('Table'[Reason]))
var t=TOPN(3,v,[Ct],DESC)
var r= CONCATENATEX(t,[Reason],",")
return r&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Jul 2020 19:35:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1200951#M19189</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-03T19:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Top N reason for the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1208889#M19433</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I used the Intersect with values on the DAX measure for both of the above tables and it worked for me.&lt;/P&gt;&lt;P&gt;ReasonCount=Calculate(Count(Reason),Intersect(Values(Reason),Values(Date)))&lt;/P&gt;&lt;P&gt;Be careful with the table sequence in intersect they incur different results for different combination.Intersect(T1,T2) is not equal to Intersect(T2,T1).&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 10:53:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-reason-for-the-month/m-p/1208889#M19433</guid>
      <dc:creator>bondfranco</dc:creator>
      <dc:date>2020-07-08T10:53:41Z</dc:date>
    </item>
  </channel>
</rss>

