<?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 Getting a Measure to read ZERO (0) when the slicers read all selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-Measure-to-read-ZERO-0-when-the-slicers-read-all/m-p/1045205#M14095</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following measure&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2.6 = MAXX(VALUES(Data[School]), [Area max per School])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Table - Column - Measure&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But when the School Filter reads ALL i would like to read (0) until a school is selected. Will a selected value work? Or anything really i havent been terrbily successful.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 23 Apr 2020 18:33:39 GMT</pubDate>
    <dc:creator>cflynn_29</dc:creator>
    <dc:date>2020-04-23T18:33:39Z</dc:date>
    <item>
      <title>Getting a Measure to read ZERO (0) when the slicers read all selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-Measure-to-read-ZERO-0-when-the-slicers-read-all/m-p/1045205#M14095</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following measure&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2.6 = MAXX(VALUES(Data[School]), [Area max per School])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Table - Column - Measure&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But when the School Filter reads ALL i would like to read (0) until a school is selected. Will a selected value work? Or anything really i havent been terrbily successful.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Apr 2020 18:33:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-Measure-to-read-ZERO-0-when-the-slicers-read-all/m-p/1045205#M14095</guid>
      <dc:creator>cflynn_29</dc:creator>
      <dc:date>2020-04-23T18:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Measure to read ZERO (0) when the slicers read all selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-Measure-to-read-ZERO-0-when-the-slicers-read-all/m-p/1045435#M14101</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="223968" data-lia-user-login="cflynn_29" class="lia-mention lia-mention-user"&gt;cflynn_29&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have you tried to write your measure like this?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2.6 = if(hasonevalue(data[school]),MAXX(VALUES(Data[School]), [Area max per School]),0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Sturla&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 21:06:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-Measure-to-read-ZERO-0-when-the-slicers-read-all/m-p/1045435#M14101</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2020-04-23T21:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Measure to read ZERO (0) when the slicers read all selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-Measure-to-read-ZERO-0-when-the-slicers-read-all/m-p/1047205#M14174</link>
      <description>&lt;P&gt;Don't understand why there's MAXX in there... This returns the same output:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if( hasonevalue( data[school] ),
   [Area max per School],
   0
)&lt;/LI-CODE&gt;
&lt;P&gt;which can also be compacted to:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;hasonevalue( data[school] ) * [Area max per School]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The two (and the one given by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="88633" data-lia-user-login="sturlaws" class="lia-mention lia-mention-user"&gt;sturlaws&lt;/a&gt;) are exactly the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 14:34:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-Measure-to-read-ZERO-0-when-the-slicers-read-all/m-p/1047205#M14174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-24T14:34:49Z</dc:date>
    </item>
  </channel>
</rss>

