<?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: Calculate Region revenue in a Country table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1438480#M26893</link>
    <description>Please try to learn more about DAX since the formula you've shown tells me immediately you should invest quite a bit of time in learning DAX and in data modeling. There are many free and quite good resources on the net you could use. Many of them on YT as well.&lt;BR /&gt;&lt;BR /&gt;I think this is what you're after:&lt;BR /&gt;&lt;BR /&gt;[Region Total Rev] =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM( T[Revenue] ),&lt;BR /&gt;REMOVEFILTERS( T[Country] )&lt;BR /&gt;)</description>
    <pubDate>Fri, 16 Oct 2020 12:03:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-16T12:03:29Z</dc:date>
    <item>
      <title>Calculate Region revenue in a Country table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1436083#M26834</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I require the Dax to be able to calculate the region&amp;nbsp; revenue instead of the country revenue in a matrix table by data set is as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;the table i'm trying to create in power BI is something like this where i display both the country Rev and the Region rev next to each other which i have managed to do with the following dax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Region Rev = CALCULATE(SUM('Dataset 1'[Revenue]),FILTER(FILTER(ALL('Dataset 1'),'Dataset 1'[Region]=SELECTEDVALUE('Dataset 1'[Region])),'Dataset 1'[Year]=SELECTEDVALUE('Dataset 1'[Year])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However i cannot get it to calculate by industry and it is just giving me the total rev for the region, rather then by Industry by for that region.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in theory all i want to do is stop the measure from filtering on Country and instead filter on the region for that country when it is displaying any values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 12:57:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1436083#M26834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-15T12:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Region revenue in a Country table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1438480#M26893</link>
      <description>Please try to learn more about DAX since the formula you've shown tells me immediately you should invest quite a bit of time in learning DAX and in data modeling. There are many free and quite good resources on the net you could use. Many of them on YT as well.&lt;BR /&gt;&lt;BR /&gt;I think this is what you're after:&lt;BR /&gt;&lt;BR /&gt;[Region Total Rev] =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM( T[Revenue] ),&lt;BR /&gt;REMOVEFILTERS( T[Country] )&lt;BR /&gt;)</description>
      <pubDate>Fri, 16 Oct 2020 12:03:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1438480#M26893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-16T12:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Region revenue in a Country table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1446262#M27112</link>
      <description>&lt;P&gt;Hi Daxer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this would not work am im trying to calculate the region revenue when a country is filtered. simply removing the country filter is not what is required.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when a country is selected it needs to show what the total revenue is for the region related to that country. I also need this to be able calculate for products and industry i.e showing the total region revenue for an industry/ product when a country is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone else have any ideas how to do this?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 07:29:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1446262#M27112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-21T07:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Region revenue in a Country table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1446473#M27115</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; does the code as below help you?&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Region Rev = CALCULATE(SUM('Dataset 1'[Revenue]),'Dataset 1'[Region] IN VALUES('Dataset 1'[Region]),ALL('Dataset 1'[Country]))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Oct 2020 08:41:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1446473#M27115</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-10-21T08:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Region revenue in a Country table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1446604#M27117</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;thanks this works perfectly! Thanks alot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry i can't access my&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;account at the moment so had to create this new one, unfortunately I cannot mark as solution&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 09:26:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1446604#M27117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-21T09:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Region revenue in a Country table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1446646#M27119</link>
      <description>Interesting... Here are your own words: "[...] in theory all i want to do is stop the measure from filtering on Country and instead filter on the region for that country when it is displaying any values"&lt;BR /&gt;&lt;BR /&gt;My code does exactly what you requested.</description>
      <pubDate>Wed, 21 Oct 2020 09:39:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Region-revenue-in-a-Country-table/m-p/1446646#M27119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-21T09:39:23Z</dc:date>
    </item>
  </channel>
</rss>

