<?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 with DAX expression in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-expression/m-p/2733947#M83808</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Based on the table structure that I see on the screenshot, I tried to create measures like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Stores with only online: = 
COUNTROWS (
    FILTER (
        VALUES ( Data[Store Name] ),
        CALCULATE ( SELECTEDVALUE ( Data[Machine Status] ) ) = "Online"
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Stores with only offline: = 
COUNTROWS (
    FILTER (
        VALUES ( Data[Store Name] ),
        CALCULATE ( SELECTEDVALUE ( Data[Machine Status] ) ) = "Offline"
    )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 30 Aug 2022 03:43:20 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-08-30T03:43:20Z</dc:date>
    <item>
      <title>Need help with DAX expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-expression/m-p/2733490#M83778</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really need help with DAX expression to get below result:&lt;/P&gt;&lt;P&gt;Store with Only Online machines should contain all machines with "Online" status.&lt;/P&gt;&lt;P&gt;Store with Only Offline machines should contain all machines with "Offline" status.&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;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 20:41:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-expression/m-p/2733490#M83778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-29T20:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-expression/m-p/2733947#M83808</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Based on the table structure that I see on the screenshot, I tried to create measures like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;Stores with only online: = 
COUNTROWS (
    FILTER (
        VALUES ( Data[Store Name] ),
        CALCULATE ( SELECTEDVALUE ( Data[Machine Status] ) ) = "Online"
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Stores with only offline: = 
COUNTROWS (
    FILTER (
        VALUES ( Data[Store Name] ),
        CALCULATE ( SELECTEDVALUE ( Data[Machine Status] ) ) = "Offline"
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Aug 2022 03:43:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-expression/m-p/2733947#M83808</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-30T03:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-expression/m-p/2735475#M83886</link>
      <description>&lt;P&gt;Perfect, thats exactly what I was looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreaciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 13:54:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX-expression/m-p/2735475#M83886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-30T13:54:33Z</dc:date>
    </item>
  </channel>
</rss>

