<?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 Rank Industries based on Revenues and Filter to only Current Year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007806#M101880</link>
    <description>&lt;P&gt;I think you need only one DAX, using condition in calculate function. Try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var a = max(table1[rev_year].[year])

return
RANKX( ALLSELECTED(company[industry]), CALCULATE(SUM(table1[revenue1]) + SUM(table1[revenue2]),table1[rev_year].year=a),  , DESC, Dense)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 01:44:54 GMT</pubDate>
    <dc:creator>Adam_Shelton</dc:creator>
    <dc:date>2023-01-09T01:44:54Z</dc:date>
    <item>
      <title>Top Rank Industries based on Revenues and Filter to only Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007761#M101878</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am having a bit of trouble to sum up top 3 categories with highest revenue only for the most current year.&lt;/P&gt;&lt;P&gt;So far, I have the measure for the ranking part, and I have a measure that can filter out the data only to the current year but the problem is I can't merge these 2 measures to get me the output I am expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ranking measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RANKX( ALLSELECTED(company[industry]), CALCULATE( SUM(table1[revenue1]) + SUM(table1[revenue2]))
,  , DESC, Dense)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filtering to current year:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    FILTER(
        ALL(table1),
        table1[rev_year].[Year] = MAX(table1[rev_year].[Year])
        &amp;amp;&amp;amp; table1[rev_year].[Date] &amp;lt;= MAX(table1[rev_year].[Date])&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I want to create a measure which can help me to get top 3 industries with highest revenue but only based on the current year. Any suggestion?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 01:16:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007761#M101878</guid>
      <dc:creator>reendzz98</dc:creator>
      <dc:date>2023-01-09T01:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Top Rank Industries based on Revenues and Filter to only Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007806#M101880</link>
      <description>&lt;P&gt;I think you need only one DAX, using condition in calculate function. Try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var a = max(table1[rev_year].[year])

return
RANKX( ALLSELECTED(company[industry]), CALCULATE(SUM(table1[revenue1]) + SUM(table1[revenue2]),table1[rev_year].year=a),  , DESC, Dense)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 01:44:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007806#M101880</guid>
      <dc:creator>Adam_Shelton</dc:creator>
      <dc:date>2023-01-09T01:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Top Rank Industries based on Revenues and Filter to only Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007829#M101882</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="495920" data-lia-user-login="Adam_Shelton" class="lia-mention lia-mention-user"&gt;Adam_Shelton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your respond. I tried the suggested measure but the output I received is as below:&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;</description>
      <pubDate>Mon, 09 Jan 2023 02:01:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007829#M101882</guid>
      <dc:creator>reendzz98</dc:creator>
      <dc:date>2023-01-09T02:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Top Rank Industries based on Revenues and Filter to only Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007891#M101887</link>
      <description>&lt;P&gt;Try fix this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume you have a date table, edit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var a = max(date.[year])

return
RANKX( ALLSELECTED(company[industry]), CALCULATE(SUM(table1[revenue1]) + SUM(table1[revenue2]),table1[rev_year]=a)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; I tried by using this sample data and it workd&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 02:49:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007891#M101887</guid>
      <dc:creator>Adam_Shelton</dc:creator>
      <dc:date>2023-01-09T02:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Top Rank Industries based on Revenues and Filter to only Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007898#M101889</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="495920" data-lia-user-login="Adam_Shelton" class="lia-mention lia-mention-user"&gt;Adam_Shelton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the new measure and it worked well!&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;Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 02:56:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-Rank-Industries-based-on-Revenues-and-Filter-to-only-Current/m-p/3007898#M101889</guid>
      <dc:creator>reendzz98</dc:creator>
      <dc:date>2023-01-09T02:56:15Z</dc:date>
    </item>
  </channel>
</rss>

