<?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: Why my measure remove external date filter? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221437#M52766</link>
    <description>&lt;P&gt;Does this work better?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Free Capacity, % =
VAR Loading = [Loading, %]
RETURN
    IF (
        ISBLANK ( Loading ),
        BLANK (),
        MAX ( 1 - Loading, 0 )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Dec 2021 18:23:50 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2021-12-05T18:23:50Z</dc:date>
    <item>
      <title>Why my measure remove external date filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221423#M52764</link>
      <description>&lt;P&gt;I wish to calculate free capacity which is math difference between 100% and Loading, %.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Loading, %] - is a measure which calculated from inputs file as:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Loading, % =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;/SPAN&gt;&lt;SPAN&gt; SUM(InputFiled[Value]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Consolidated[RESOURCE TYPE ] IN {"Loading"})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My formula for Free Capacity is:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Free Capacity, % = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var Diff = 1-[Loading, %]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(Diff&amp;gt;0,Diff,0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When i create matrix table for Free Capacity, % by month, its shows correct values but it is not filtered by date slicer and shows&amp;nbsp; table for all months available in database.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If i replace table value by [Loading, %] all works fine.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;How I shold modify Free Capacity formnula to have it responcive to date slicer?&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Dec 2021 17:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221423#M52764</guid>
      <dc:creator>Sbezkoro</dc:creator>
      <dc:date>2021-12-05T17:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why my measure remove external date filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221437#M52766</link>
      <description>&lt;P&gt;Does this work better?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Free Capacity, % =
VAR Loading = [Loading, %]
RETURN
    IF (
        ISBLANK ( Loading ),
        BLANK (),
        MAX ( 1 - Loading, 0 )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 18:23:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221437#M52766</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-05T18:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why my measure remove external date filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221441#M52767</link>
      <description>&lt;P&gt;I modefied IF function as per my needs and its works, solution is excepted, thanks a lot!!&lt;/P&gt;&lt;P&gt;Now need to understand what was wrong with mine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 18:59:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221441#M52767</guid>
      <dc:creator>Sbezkoro</dc:creator>
      <dc:date>2021-12-05T18:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why my measure remove external date filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221450#M52768</link>
      <description>&lt;P&gt;Your original measure always returned a value regardless of date since if [Loading, %] were blank, it would still return 1 - BLANK() = 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My measure specified that it should only return something if [Loading, %] is not blank.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 19:17:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221450#M52768</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-05T19:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why my measure remove external date filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221451#M52769</link>
      <description>&lt;P&gt;and if I need to return 100% if Loading, % is zero or blank in inputs? i'm asking because equation&amp;nbsp;is&lt;/P&gt;&lt;P&gt;Loading, % + Free Capacity, % = 100%&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 19:25:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221451#M52769</guid>
      <dc:creator>Sbezkoro</dc:creator>
      <dc:date>2021-12-05T19:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why my measure remove external date filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221457#M52770</link>
      <description>&lt;P&gt;What I suggested should work fine for 0%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's blank, then things are more difficult because there's no way to tell from a blank &lt;EM&gt;why&lt;/EM&gt; it's blank (and you apparently want to treat certain cases of blank differently).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there are some blank values that you want to interpret as zero, then you'll need to build in logic to specify why those blanks are different from other blanks. This is possible but I don't have sufficient context to write the appropriate logic for you.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 19:45:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2221457#M52770</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-12-05T19:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why my measure remove external date filter?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2222684#M52812</link>
      <description>&lt;P&gt;In order to make it work I replaced all&amp;nbsp;nulls with "0" in query (inputs file). It, unfortunatelly increased my dataset, but at least I have now only zeros (no empty) and it works fine.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 10:39:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Why-my-measure-remove-external-date-filter/m-p/2222684#M52812</guid>
      <dc:creator>Sbezkoro</dc:creator>
      <dc:date>2021-12-06T10:39:52Z</dc:date>
    </item>
  </channel>
</rss>

