<?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: How to sum two thing in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2549331#M72085</link>
    <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Use Enter data to create a table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;direct country =
CALCULATE(SUM('Table'[Amount ]),FILTER(ALL('Table'),'Table'[Country of Origin ]="China"&amp;amp;&amp;amp;'Table'[Country  of Import ]="China"))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;undirect countries =
CALCULATE(SUM('Table'[Amount ]),FILTER(ALL('Table'),'Table'[Country of Origin ]="China"&amp;amp;&amp;amp;'Table'[Country  of Import ]&amp;lt;&amp;gt;"China"))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure =
SWITCH(
    TRUE(),
    MAX('Table2'[Group])="direct country",[direct country],
    MAX('Table2'[Group])="undirect countries",[undirect countries])&lt;/LI-CODE&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 07:06:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-31T07:06:33Z</dc:date>
    <item>
      <title>How to sum two thing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545287#M71821</link>
      <description>&lt;P&gt;Hello expoerts,&amp;nbsp;&lt;BR /&gt;I want from example belllow to tell me the dax code that calculate:&lt;BR /&gt;- the amount orginated from Chaina and imported from Chaina and called the direct &amp;amp;&amp;nbsp; amount that orginated from Chain but imported from countries other than Chaina and called undirect counties.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Them tell me what the best chart should to use to show the amount for amount direct country&amp;nbsp; and undirect countries.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 13:41:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545287#M71821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-28T13:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum two thing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545309#M71826</link>
      <description>&lt;P&gt;An example of such calculations please.&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 14:06:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545309#M71826</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-05-28T14:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum two thing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545316#M71828</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Country of Origin&amp;nbsp;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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@dtxtreme&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 14:24:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545316#M71828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-28T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum two thing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545478#M71862</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;Please find report for you. I hope you mark as solution.&lt;/P&gt;&lt;P&gt;&lt;A title="China Exp Imp" href="https://drive.google.com/file/d/1P8HqbFn_JnOfwBK8k2LxwmafGbMdhfTk/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1P8HqbFn_JnOfwBK8k2LxwmafGbMdhfTk/view?usp=sharing&lt;/A&gt;&amp;nbsp;&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>Sat, 28 May 2022 18:49:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545478#M71862</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-28T18:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum two thing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545489#M71864</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Imp &amp;amp; Org China = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data[Amount ]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Data[Country of Origin ]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"China"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;Data[Country of Import ]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"China"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Origin China-Import Not China = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data[Amount ]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Data[Country of Origin ]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"China"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;Data[Country of Import ]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;"China"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 28 May 2022 19:12:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545489#M71864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-28T19:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum two thing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545557#M71874</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;These are the calculated columns I sent earlier with the visual examples:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Direct(org &amp;amp; Imp China)&lt;/STRONG&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data[Country of Origin ]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"China"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Country of Import ]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"China"&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Data[Amount ]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;Origin China-Import Not China&lt;/STRONG&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Data[Country of Origin ]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"China"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Country of Import ]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;"China"&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Data[Amount ]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 28 May 2022 20:37:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2545557#M71874</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-28T20:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum two thing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2549331#M72085</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Use Enter data to create a table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;direct country =
CALCULATE(SUM('Table'[Amount ]),FILTER(ALL('Table'),'Table'[Country of Origin ]="China"&amp;amp;&amp;amp;'Table'[Country  of Import ]="China"))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;undirect countries =
CALCULATE(SUM('Table'[Amount ]),FILTER(ALL('Table'),'Table'[Country of Origin ]="China"&amp;amp;&amp;amp;'Table'[Country  of Import ]&amp;lt;&amp;gt;"China"))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure =
SWITCH(
    TRUE(),
    MAX('Table2'[Group])="direct country",[direct country],
    MAX('Table2'[Group])="undirect countries",[undirect countries])&lt;/LI-CODE&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 07:06:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2549331#M72085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-31T07:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum two thing</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2586891#M74418</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello again,&amp;nbsp;&lt;BR /&gt;I gave you before an example for specific country which is China.&lt;BR /&gt;How I can do that a dynamaic,&amp;nbsp;for example, when I use slicer for any country in country of Origin,&amp;nbsp; it give direct and undirect values for country of Import&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 04:13:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-sum-two-thing/m-p/2586891#M74418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-19T04:13:01Z</dc:date>
    </item>
  </channel>
</rss>

