<?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: DAX query to return CompI have liant or Non Compliant based on the filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-query-to-return-CompI-have-liant-or-Non-Compliant-based-on/m-p/3249991#M119876</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;You can try to use the following measure formula to get the correspond statues count based on current hostname:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;formula =
VAR currName =
    SELECTEDVALUE ( Table[HostName] )
VAR summary =
    SUMMARIZE (
        FILTER (
            ALLSELECTED ( Table ),
            [compliance_status] IN { "Installed", "Required" }
        ),
        [HostName],
        [compliance_status]
    )
RETURN
    IF (
        COUNTROWS ( FILTER ( summary, [HostName] = currName ) ) &amp;lt; 2,
        "Compliant",
        "Non compliant"
    )&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 02:05:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-24T02:05:44Z</dc:date>
    <item>
      <title>DAX query to return CompI have liant or Non Compliant based on the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-query-to-return-CompI-have-liant-or-Non-Compliant-based-on/m-p/3245909#M119781</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Based on this data I want to create a calculated column or measure.&lt;/P&gt;&lt;P&gt;If compliance_status is both installed and required result should be Non compliant otherwise compliant in a new column.&lt;/P&gt;&lt;P&gt;I have no idea how to achieve it tried multiple ways but no luck.&lt;/P&gt;&lt;P&gt;Any suggestion how to achieve it.&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2023 12:44:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-query-to-return-CompI-have-liant-or-Non-Compliant-based-on/m-p/3245909#M119781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-21T12:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX query to return CompI have liant or Non Compliant based on the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-query-to-return-CompI-have-liant-or-Non-Compliant-based-on/m-p/3249991#M119876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;You can try to use the following measure formula to get the correspond statues count based on current hostname:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;formula =
VAR currName =
    SELECTEDVALUE ( Table[HostName] )
VAR summary =
    SUMMARIZE (
        FILTER (
            ALLSELECTED ( Table ),
            [compliance_status] IN { "Installed", "Required" }
        ),
        [HostName],
        [compliance_status]
    )
RETURN
    IF (
        COUNTROWS ( FILTER ( summary, [HostName] = currName ) ) &amp;lt; 2,
        "Compliant",
        "Non compliant"
    )&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 02:05:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-query-to-return-CompI-have-liant-or-Non-Compliant-based-on/m-p/3249991#M119876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T02:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX query to return CompI have liant or Non Compliant based on the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-query-to-return-CompI-have-liant-or-Non-Compliant-based-on/m-p/3250622#M119927</link>
      <description>&lt;LI-CODE lang="markup"&gt;You can use the DAX language to create a computed column or metric to implement your requirements. Here is a sample DAX formula:

Compliance Status = IF(Table1[Compliance_Status] = "Installed" &amp;amp;&amp;amp; Table1[Compliance_Status] = "Required",  "Non compliant", "Compliant")

This formula checks whether the value in the Compliance_Status column contains both "Installed" and "Required". If so, the result is "Non compliant", otherwise it is "Compliant". You can apply this formula to a new computed column or measure to display the results in a table.&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 May 2023 08:59:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-query-to-return-CompI-have-liant-or-Non-Compliant-based-on/m-p/3250622#M119927</guid>
      <dc:creator>Mrxiang</dc:creator>
      <dc:date>2023-05-24T08:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX query to return CompI have liant or Non Compliant based on the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-query-to-return-CompI-have-liant-or-Non-Compliant-based-on/m-p/3256282#M120267</link>
      <description>&lt;P&gt;Unfortunately it didn't worked as expected.&lt;/P&gt;&lt;P&gt;However I tried another method and it worked.&lt;/P&gt;&lt;P&gt;I have created a duplicate table and then used group by to achieve the solution.&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 13:20:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-query-to-return-CompI-have-liant-or-Non-Compliant-based-on/m-p/3256282#M120267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-27T13:20:40Z</dc:date>
    </item>
  </channel>
</rss>

