<?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: Checking if multiple trainings are passed in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2375478#M61148</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="193114" data-lia-user-login="drwinny" class="lia-mention lia-mention-user"&gt;drwinny&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;countrows(filter(summarize(Table, Table[user Name], Table[Training ID],"_1" ,Countrows(Table), "_2",Countrows(filter(Table, Table[Training Passed])=1)), [_1] =[_2]))&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 17:09:14 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-04T17:09:14Z</dc:date>
    <item>
      <title>Checking if multiple trainings are passed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2375378#M61140</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have asked this question before, but I have not been able to solve the problem I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate if each person is certified for Product A, Product B, Product C, Etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be certified you need to have passed all the trainings for that product, so for Product A the user would need to pass 3 training courses (this varies depending on the product)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Some people have worked for multiple companies and completed the same training, which causes me problems when using my real data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I have calculated who is certified and for what products I will then need to show:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total people Product A certified = 1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Total people Product B certified = 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Total people Product C certified = 1&lt;/SPAN&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added the files here:&amp;nbsp;&lt;A href="https://drive.google.com/drive/folders/1JuZl4BP52aPdzO73cCKAPdGDZC36zeXO?usp=sharing" target="_blank" rel="noopener"&gt;Example Files&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any giudeance on how to acheive this would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 16:13:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2375378#M61140</guid>
      <dc:creator>drwinny</dc:creator>
      <dc:date>2022-03-04T16:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if multiple trainings are passed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2375478#M61148</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="193114" data-lia-user-login="drwinny" class="lia-mention lia-mention-user"&gt;drwinny&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;countrows(filter(summarize(Table, Table[user Name], Table[Training ID],"_1" ,Countrows(Table), "_2",Countrows(filter(Table, Table[Training Passed])=1)), [_1] =[_2]))&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 17:09:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2375478#M61148</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-04T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if multiple trainings are passed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2375531#M61154</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, I get the following error, not sure if I have done something wrong or not?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 17:31:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2375531#M61154</guid>
      <dc:creator>drwinny</dc:creator>
      <dc:date>2022-03-04T17:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if multiple trainings are passed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2376095#M61206</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="193114" data-lia-user-login="drwinny" class="lia-mention lia-mention-user"&gt;drwinny&lt;/a&gt; , Sorry, My Mistake. try that&lt;/P&gt;
&lt;P&gt;countrows(filter(summarize(Table, Table[user Name], Table[Training ID],"_1" ,Countrows(Table), "_2",Countrows(filter(Table, Table[Training Passed]=1))), [_1] =[_2]))&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 03:58:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2376095#M61206</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-05T03:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if multiple trainings are passed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2376216#M61213</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="193114" data-lia-user-login="drwinny" class="lia-mention lia-mention-user"&gt;drwinny&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You should have a separate table that contains all possible Traning ID's. The a calculated column or measure that satisfies you requirement can be generated. I have two questions:&lt;BR /&gt;1. Do yo want a calculated column or a measure?&amp;nbsp;&lt;BR /&gt;2. Please elaborate on the company's issue. If the person has results in two different companies how shall we proceed?&amp;nbsp;&lt;BR /&gt;Please copy and paste the same sample data so we can use it for the analysis. Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 08:39:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2376216#M61213</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-05T08:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if multiple trainings are passed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2380549#M61484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="193114" data-lia-user-login="drwinny" class="lia-mention lia-mention-user"&gt;drwinny&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Extract &lt;STRONG&gt;Training type&lt;/STRONG&gt; from Training ID column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Training Type = LEFT([Training ID], FIND("Training",[Training ID])-1)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.Create a &lt;STRONG&gt;flag&lt;/STRONG&gt; measure—— if passed then 1 else 0：&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag = 
var _score=SUMX(FILTER('Data',[User Name]=MAX('Data'[User Name]) &amp;amp;&amp;amp; [Training Type]=MAX('Data'[Training Type])),[Training Passed])
var _count=CALCULATE(DISTINCTCOUNT('Data'[Training ID]),ALLEXCEPT(Data,Data[User Name],Data[Training Type]))
RETURN IF(_count=_score,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. &lt;STRONG&gt;Sum&lt;/STRONG&gt; the Flag measure of each Training Type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Passed Person Count = var _t=SUMMARIZE(ALL('Data'),[Training Type],Data[User Name],"Flag",[Flag])
return SUMX(FILTER(_t,[Training Type]=MAX('Data'[Training Type])),[Flag])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Final output:&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;BR /&gt;Eyelyn Qin&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 07:31:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2380549#M61484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-08T07:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if multiple trainings are passed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2386731#M61866</link>
      <description>&lt;P&gt;Thank you to everyone that has taken the time to try and help me solve this problem, I will try the suggestions and reply, thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sean.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 15:35:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2386731#M61866</guid>
      <dc:creator>drwinny</dc:creator>
      <dc:date>2022-03-10T15:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if multiple trainings are passed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2394791#M62429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="193114" data-lia-user-login="drwinny" class="lia-mention lia-mention-user"&gt;drwinny&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any updates?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Eyelyn Qin&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 09:42:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2394791#M62429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-15T09:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if multiple trainings are passed</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2395453#M62476</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;Both of your suggestions helped but Eyelyn9's solution gave me the "certified count" that I was looking for.&lt;/P&gt;&lt;P&gt;I just need to breakdown each step of this process so I can understand how to solve these types of questions for myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for taking time to help me with this request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 13:50:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Checking-if-multiple-trainings-are-passed/m-p/2395453#M62476</guid>
      <dc:creator>drwinny</dc:creator>
      <dc:date>2022-03-15T13:50:19Z</dc:date>
    </item>
  </channel>
</rss>

