<?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: Need help for a DAX Query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-for-a-DAX-Query/m-p/3329247#M124719</link>
    <description>&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;&lt;A href="https://1drv.ms/u/s!AsDP3LYI8umspTtUQYXEFwS0qmTZ?e=PhieBf" target="_blank" rel="noopener"&gt;comp.pbix&lt;/A&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One measure is enough to do the trick&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;A href="https://1drv.ms/x/s!AsDP3LYI8umspTyNNqoVGIHV7sRq?e=6CGdc2" target="_blank" rel="noopener"&gt;comp.xlsx&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For fun only, a showcase of powerful Excel formulas,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 12:40:41 GMT</pubDate>
    <dc:creator>ThxAlot</dc:creator>
    <dc:date>2023-07-13T12:40:41Z</dc:date>
    <item>
      <title>Need help for a DAX Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-for-a-DAX-Query/m-p/3328482#M124667</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find the count of employees who are fully competent.&lt;BR /&gt;You can say an employee is fully competent when,&lt;BR /&gt;&lt;BR /&gt;For Distinct Job code, For Distinct Site the employee should complete all the Competencies(Reviews,Risks,deployment,services,agile) and the level should be &lt;STRONG&gt;Qualified.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;QualifiedEmployees =
CALCULATE (
    COUNTROWS ( 'New New FINAL' ),
    'New New FINAL'[Job Code] = "QC-01",
    'New New FINAL'[Level] = "Qualified",
    'New New FINAL'[EmployeeId] IN VALUES ( 'New New FINAL'[EmployeeId] ),
    'New New FINAL'[Name competency] = "Reviews" &amp;amp;&amp;amp;
    'New New FINAL'[Name competency] = "Risks" &amp;amp;&amp;amp;
    'New New FINAL'[Name competency] = "deployment" &amp;amp;&amp;amp;
    'New New FINAL'[Name competency] = "Services" &amp;amp;&amp;amp;
    'New New FINAL'[Name competency] = "Agile"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New New Final Table&amp;nbsp;&lt;/STRONG&gt;(Example)&lt;/P&gt;&lt;P&gt;| EmployeeId | Job Code | Level | Name competency |&lt;BR /&gt;|------------|----------|-----------|-----------------|&lt;BR /&gt;| 1 | QC-01 | Qualified | Reviews |&lt;BR /&gt;| 1 | QC-01 | Qualified | Risks |&lt;BR /&gt;| 1 | QC-01 | Qualified | deployment |&lt;BR /&gt;| 1 | QC-01 | Qualified | Services |&lt;BR /&gt;| 1 | QC-01 | Qualified | Agile |&lt;BR /&gt;| 2 | QC-01 | Qualified | Reviews |&lt;BR /&gt;| 2 | QC-01 | Qualified | Risks |&lt;BR /&gt;| 2 | QC-01 | Qualified | deployment |&lt;BR /&gt;| 2 | QC-01 | Qualified | Services |&lt;BR /&gt;| 3 | QC-01 | Qualified | Reviews |&lt;BR /&gt;| 4 | QC-01 | Qualified | Reviews |&lt;BR /&gt;| 4 | QC-01 | Qualified | Services |&lt;BR /&gt;| 5 | QC-01 | Qualified | Reviews |&lt;BR /&gt;| 5 | QC-01 | Qualified | deployment |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So based on the DAX query written&amp;nbsp; The Output should be Count of employees who has complted all the competencies&lt;BR /&gt;Therefore in this case its 1. because only person has complted all the 5 competencies&lt;BR /&gt;&lt;BR /&gt;Please help me with this issue&amp;nbsp;&lt;BR /&gt;Thanks &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 03:19:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-for-a-DAX-Query/m-p/3328482#M124667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-13T03:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for a DAX Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-for-a-DAX-Query/m-p/3328829#M124683</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;possible solution, not totaly eleagant but I think is working.&lt;/P&gt;&lt;P&gt;Create two measures: &lt;SPAN&gt;Num of comp and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# Employes qualified,&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;adjust Sheet2 to your table name&lt;/P&gt;&lt;P&gt;Assumption: number of commpetence is 5 to count employess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did I answer your question? Mark my post as a solution! Kudos Appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Num of comp = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Sheet2&lt;/SPAN&gt;&lt;SPAN&gt;[Name competency]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Employes qualified = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _qualiefied_table =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( Sheet2, Sheet2[Level] = &lt;/SPAN&gt;&lt;SPAN&gt;"Qualified"&lt;/SPAN&gt;&lt;SPAN&gt; ), Sheet2[EmployeeId] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _filtered_table =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;//number of competencies set to 5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt; ( _qualiefied_table, &lt;/SPAN&gt;&lt;SPAN&gt;"@Number Name comp"&lt;/SPAN&gt;&lt;SPAN&gt;, [Num of comp] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [@Number Name comp] = &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt; ( _filtered_table )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jul 2023 07:45:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-for-a-DAX-Query/m-p/3328829#M124683</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-07-13T07:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for a DAX Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-for-a-DAX-Query/m-p/3329247#M124719</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;&lt;A href="https://1drv.ms/u/s!AsDP3LYI8umspTtUQYXEFwS0qmTZ?e=PhieBf" target="_blank" rel="noopener"&gt;comp.pbix&lt;/A&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One measure is enough to do the trick&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;A href="https://1drv.ms/x/s!AsDP3LYI8umspTyNNqoVGIHV7sRq?e=6CGdc2" target="_blank" rel="noopener"&gt;comp.xlsx&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For fun only, a showcase of powerful Excel formulas,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 12:40:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-for-a-DAX-Query/m-p/3329247#M124719</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2023-07-13T12:40:41Z</dc:date>
    </item>
  </channel>
</rss>

