<?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 some help on writing a measure to count numbers of bars. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-on-writing-a-measure-to-count-numbers-of-bars/m-p/3962068#M153729</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure where you got your target so I hard coded it to be 8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These measures should help.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Target = 8

Shifts = SUM( 'Table'[# of Shifts] )

Below = 
    COUNTROWS(
        FILTER(
            'Table',
            [Shifts] &amp;lt;= [Target]
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AnF6rI36HAVkhYc-Fvee-7lmuNIAZw?e=8xTmPD" target="_blank"&gt;bwang2.pbix&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2024 19:28:43 GMT</pubDate>
    <dc:creator>gmsamborn</dc:creator>
    <dc:date>2024-05-30T19:28:43Z</dc:date>
    <item>
      <title>Need some help on writing a measure to count numbers of bars.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-on-writing-a-measure-to-count-numbers-of-bars/m-p/3961976#M153722</link>
      <description>&lt;P&gt;Hi I am still new to DAX and I feel like it should be an easy DAX to write but I tried and couldn't figure it out.&lt;BR /&gt;I have a chart below, I want to have a measure that counts the number of bars that is below the target, these two green bars, in this case, it should retunrs "2" as the result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 18:31:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-on-writing-a-measure-to-count-numbers-of-bars/m-p/3961976#M153722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-30T18:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help on writing a measure to count numbers of bars.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-on-writing-a-measure-to-count-numbers-of-bars/m-p/3962068#M153729</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure where you got your target so I hard coded it to be 8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These measures should help.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Target = 8

Shifts = SUM( 'Table'[# of Shifts] )

Below = 
    COUNTROWS(
        FILTER(
            'Table',
            [Shifts] &amp;lt;= [Target]
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AnF6rI36HAVkhYc-Fvee-7lmuNIAZw?e=8xTmPD" target="_blank"&gt;bwang2.pbix&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 19:28:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-on-writing-a-measure-to-count-numbers-of-bars/m-p/3962068#M153729</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2024-05-30T19:28:43Z</dc:date>
    </item>
  </channel>
</rss>

