<?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: Use count with measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-count-with-measure/m-p/3218527#M117567</link>
    <description>&lt;P&gt;Hey, can you create a calculated column of this measure so that you can use it as a column for the chart?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 18:38:38 GMT</pubDate>
    <dc:creator>milanpasschier3</dc:creator>
    <dc:date>2023-05-03T18:38:38Z</dc:date>
    <item>
      <title>Use count with measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-count-with-measure/m-p/3218516#M117566</link>
      <description>&lt;P&gt;Hi guys, I have a doubt about something that I believe is simple.&lt;/P&gt;&lt;P&gt;I created a conditional measure in DAX to understand if the product passed the reorder point or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;# Status Stock = SWITCH(&lt;BR /&gt; TRUE(),&lt;BR /&gt; SUM(fStock[STOCK]) &amp;gt;= [Order Point], "Ok",&lt;BR /&gt; SUM(fStock[STOCK]) &amp;gt;= [Order Point] * 0.8, "Attention",&lt;BR /&gt; "Request Product")&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a chart that contains the count of each of the 3 statuses. But when trying to use the Count function, it is not allowed to include measures, only columns.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 18:30:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-count-with-measure/m-p/3218516#M117566</guid>
      <dc:creator>FelipMark</dc:creator>
      <dc:date>2023-05-03T18:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use count with measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-count-with-measure/m-p/3218527#M117567</link>
      <description>&lt;P&gt;Hey, can you create a calculated column of this measure so that you can use it as a column for the chart?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 18:38:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-count-with-measure/m-p/3218527#M117567</guid>
      <dc:creator>milanpasschier3</dc:creator>
      <dc:date>2023-05-03T18:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use count with measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-count-with-measure/m-p/3218546#M117570</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="485055" data-lia-user-login="FelipMark" class="lia-mention lia-mention-user"&gt;FelipMark&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Manually create a single column table 'Statuses' that contains the 3 statuses. Then you can place 'Statuses'[Status] in the x-axis and the following measure in the values.&amp;nbsp;&lt;BR /&gt;Count =&lt;BR /&gt;SUMX (&lt;BR /&gt;CROSSJOIN ( VALUES ( 'Statuses'[Status] ), VALUES ( fStock[Material ID] ) ),&lt;BR /&gt;INT ( 'Statuses'[Status] = [Status Stock] )&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 19:02:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-count-with-measure/m-p/3218546#M117570</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-03T19:02:51Z</dc:date>
    </item>
  </channel>
</rss>

