<?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 Same Assets with different Class in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Assets-with-different-Class/m-p/2149577#M49504</link>
    <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;need help to get the Result column.&lt;/P&gt;&lt;P&gt;Here the requirement is, Multiple AstDep can associated with only single Asset class.&lt;BR /&gt;For Example, {A=Fan,Pen}. Here Fan amd Pen is only for Aset class of A. and they should not be used for Other Asset class&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if Fan or pen used for Other Asset class is then the result is "Anamoly".&lt;BR /&gt;Asset class:- A&amp;nbsp; and having Ast de{Fan, Pen} with their Cocd:{i,h}&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>Fri, 22 Oct 2021 05:45:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-22T05:45:02Z</dc:date>
    <item>
      <title>Same Assets with different Class</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Assets-with-different-Class/m-p/2149577#M49504</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;need help to get the Result column.&lt;/P&gt;&lt;P&gt;Here the requirement is, Multiple AstDep can associated with only single Asset class.&lt;BR /&gt;For Example, {A=Fan,Pen}. Here Fan amd Pen is only for Aset class of A. and they should not be used for Other Asset class&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if Fan or pen used for Other Asset class is then the result is "Anamoly".&lt;BR /&gt;Asset class:- A&amp;nbsp; and having Ast de{Fan, Pen} with their Cocd:{i,h}&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>Fri, 22 Oct 2021 05:45:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Assets-with-different-Class/m-p/2149577#M49504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-22T05:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Same Assets with different Class</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Assets-with-different-Class/m-p/2150465#M49538</link>
      <description>&lt;P&gt;Hi there. If I understood correctly, then Fan and Pen are ANAmoly.&lt;/P&gt;
&lt;P&gt;You can build a DAX Column like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Result = 
VAR __dep = 'Table'[Dep] // current row value
VAR __class_by_dep = // number of classes by current dep in the whole table
CALCULATE(
    DISTINCTCOUNT('Table'[Class])
    , 'Table'[Dep] = __dep
    , REMOVEFILTERS('Table')
)
RETURN
IF (__class_by_dep = 1 , "Not An", "ANAmoly")
// If the current Dep has more than 1 class asign in the whole table, then ANAmoly&lt;/LI-CODE&gt;
&lt;P&gt;I hope that helps,&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 13:23:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Assets-with-different-Class/m-p/2150465#M49538</guid>
      <dc:creator>ibarrau</dc:creator>
      <dc:date>2021-10-22T13:23:19Z</dc:date>
    </item>
  </channel>
</rss>

