<?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: countrows range measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621623#M32721</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if I did that correctly, getting an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2021 17:01:21 GMT</pubDate>
    <dc:creator>kirkjordan</dc:creator>
    <dc:date>2021-01-25T17:01:21Z</dc:date>
    <item>
      <title>countrows range measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621038#M32705</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New to this so please excuse the ignorance. Trying to create a measurement to count the number of values in the ordervalue column between 2 values for example count the number of rows between £0 - £500, £501 - £1000, £1001 – £2000 and so on. Still new to PBI so the less complicated the better&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&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>Mon, 25 Jan 2021 13:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621038#M32705</guid>
      <dc:creator>kirkjordan</dc:creator>
      <dc:date>2021-01-25T13:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: countrows range measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621362#M32714</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281935" data-lia-user-login="kirkjordan" class="lia-mention lia-mention-user"&gt;kirkjordan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; Create an ancillary table Thresholds (no relationships) describing the ranges:&lt;/P&gt;
&lt;TABLE width="230"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;Range&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;MinVal&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;MaxVal&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0-500&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;500&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;500-1000&lt;/TD&gt;
&lt;TD&gt;500&lt;/TD&gt;
&lt;TD&gt;1000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1000-2000&lt;/TD&gt;
&lt;TD&gt;1000&lt;/TD&gt;
&lt;TD&gt;2000&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;make sure MinVal and MaxVal are of type number&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. &lt;/STRONG&gt;Place Thresholds[Range] in a table visual&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; Place this measure in the visual&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR minVal_ = SELECTEDVALUE ( Thresholds[MinVal] )
VAR maxVal_ = SELECTEDVALUE ( Thresholds[MaxVal] )
RETURN
    COUNTROWS (
        FILTER ( Table1, Table1[ordervalue] &amp;gt;= minVal_ &amp;amp;&amp;amp; Table1[ordervalue] &amp;lt; maxVal_ )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 15:10:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621362#M32714</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-25T15:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: countrows range measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621623#M32721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if I did that correctly, getting an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 17:01:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621623#M32721</guid>
      <dc:creator>kirkjordan</dc:creator>
      <dc:date>2021-01-25T17:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: countrows range measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621639#M32722</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281935" data-lia-user-login="kirkjordan" class="lia-mention lia-mention-user"&gt;kirkjordan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the pbix? Or one with dummy data that reproduces the problem?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 17:06:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621639#M32722</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-25T17:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: countrows range measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621684#M32725</link>
      <description>&lt;P&gt;Got it working, thanks for your help!!!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 17:32:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/countrows-range-measure/m-p/1621684#M32725</guid>
      <dc:creator>kirkjordan</dc:creator>
      <dc:date>2021-01-25T17:32:17Z</dc:date>
    </item>
  </channel>
</rss>

