<?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 Count based on criteria from 2 different table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/901937#M8263</link>
    <description>&lt;P&gt;I want to analyze trend of change from year to year&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Customer&lt;/TD&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AA01&lt;/TD&gt;&lt;TD&gt;Satisfied&lt;/TD&gt;&lt;TD&gt;Dissatisfied&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BB01&lt;/TD&gt;&lt;TD&gt;Dissatisfied&lt;/TD&gt;&lt;TD&gt;Satisfied&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CC01&lt;/TD&gt;&lt;TD&gt;Satisfied&lt;/TD&gt;&lt;TD&gt;Satisfied&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both 2018 and 2019 are 2 different table.&lt;/P&gt;&lt;P&gt;The satisfaction is based on formula below&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Satisfaction = IF([CSI]&amp;gt;=4, "Satisfied", "Dissatisfied")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I want to know how many from satisfied to dissatisfied and how many from dissatisfied to satisfied between 2018 &amp;amp; 2019&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What formula can I use to analyze the trend?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 16 Jan 2020 09:46:34 GMT</pubDate>
    <dc:creator>sglee</dc:creator>
    <dc:date>2020-01-16T09:46:34Z</dc:date>
    <item>
      <title>Count based on criteria from 2 different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/901937#M8263</link>
      <description>&lt;P&gt;I want to analyze trend of change from year to year&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Customer&lt;/TD&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AA01&lt;/TD&gt;&lt;TD&gt;Satisfied&lt;/TD&gt;&lt;TD&gt;Dissatisfied&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BB01&lt;/TD&gt;&lt;TD&gt;Dissatisfied&lt;/TD&gt;&lt;TD&gt;Satisfied&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CC01&lt;/TD&gt;&lt;TD&gt;Satisfied&lt;/TD&gt;&lt;TD&gt;Satisfied&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both 2018 and 2019 are 2 different table.&lt;/P&gt;&lt;P&gt;The satisfaction is based on formula below&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Satisfaction = IF([CSI]&amp;gt;=4, "Satisfied", "Dissatisfied")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I want to know how many from satisfied to dissatisfied and how many from dissatisfied to satisfied between 2018 &amp;amp; 2019&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What formula can I use to analyze the trend?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Jan 2020 09:46:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/901937#M8263</guid>
      <dc:creator>sglee</dc:creator>
      <dc:date>2020-01-16T09:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on criteria from 2 different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/903295#M8336</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="197521" data-lia-user-login="sglee" class="lia-mention lia-mention-user"&gt;sglee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, obviously you need relationships between 2018, 2019 and customer tables.&lt;/P&gt;&lt;P&gt;I guess, the Customer field should be the key for these relationships&lt;/P&gt;&lt;P&gt;If Im right you could create a columns in the CustomerTable like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ColumnSatToDis = CALCULATE(Countrows('CustomerTable'), 
FILTER(ALL('CustomerTable'), 
RELATED('Table2018'[Satisfaction])="Satisfied" &amp;amp;&amp;amp; RELATED('Table2019'[Satisfaction])="Dissatisfied"
)
)&lt;/LI-CODE&gt;&lt;P&gt;and&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ColumnDisToSat = CALCULATE(Countrows('CustomerTable'), 
FILTER(ALL('CustomerTable'), 
RELATED('Table2019'[Satisfaction])="Satisfied" &amp;amp;&amp;amp; RELATED('Table2018'[Satisfaction])="Dissatisfied"
)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://linkedin.com/in/alekseizhukov" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 10:38:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/903295#M8336</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-01-17T10:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on criteria from 2 different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/904845#M8449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, table 2018 &amp;amp; 2019 relationship is built by Customer Code in both table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I unable to set up the below&lt;/P&gt;&lt;PRE&gt;RELATED('Table2018'[Satisfaction])="Satisfied" &amp;amp;&amp;amp; RELATED('Table2019'[Satisfaction])="Dissatisfied"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 08:39:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/904845#M8449</guid>
      <dc:creator>sglee</dc:creator>
      <dc:date>2020-01-20T08:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on criteria from 2 different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/904998#M8453</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="197521" data-lia-user-login="sglee" class="lia-mention lia-mention-user"&gt;sglee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what kind of error do you get?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 09:41:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/904998#M8453</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-01-20T09:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count based on criteria from 2 different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/905783#M8496</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Syntax is incorrect&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 01:49:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-based-on-criteria-from-2-different-table/m-p/905783#M8496</guid>
      <dc:creator>sglee</dc:creator>
      <dc:date>2020-01-21T01:49:37Z</dc:date>
    </item>
  </channel>
</rss>

