<?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 help quick! Percent On Time measure not working with filters? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3222696#M117871</link>
    <description>&lt;P&gt;That didn't work, if I use ALLSELECTED the value becomes 25 just like the late count. If I use ALL then the value becomes 4M which is the total rows I have in my dataset.&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 18:12:21 GMT</pubDate>
    <dc:creator>aallman</dc:creator>
    <dc:date>2023-05-05T18:12:21Z</dc:date>
    <item>
      <title>Need help quick! Percent On Time measure not working with filters?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3220600#M117706</link>
      <description>&lt;P&gt;I have a whole page dedicated to exploring our products that have shipped late, meaning there is a page filter for [On Time Ship]="False". I also have a measure to calculate the % on time for each product. The formula is:&lt;/P&gt;&lt;PRE&gt;% On Time = CALCULATE(DISTINCTCOUNT(CVD_OTD_FTMS_IV[Reference Number]),CVD_OTD_FTMS_IV[On Time Ship]=true(),REMOVEFILTERS(CVD_OTD_FTMS_IV[On Time Ship]))/CALCULATE(DISTINCTCOUNT(CVD_OTD_FTMS_IV[Reference Number]),REMOVEFILTERS(CVD_OTD_FTMS_IV[On Time Ship]))​&lt;/PRE&gt;&lt;P&gt;where [Reference Number] is the unique identifier for someone's ordered item.&lt;/P&gt;&lt;P&gt;This measure isn't working the way I want it to and I am not sure why. The count of late items works as expected, but the total count (or denominator in my % on time measure) doesn't show what I expect unless I remove the page filter for&amp;nbsp;[On Time Ship]="False". I don't know why this would be the case since I have a RemoveFilters command in the measure formula??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the product below shows this with the page filter applied:&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and the same product without the page filter applied:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The real total count is 277 for this product. Why is it only 55 when the page filter is applied??&lt;/P&gt;&lt;P&gt;I need help rather quickly, please and thank you!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 17:28:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3220600#M117706</guid>
      <dc:creator>aallman</dc:creator>
      <dc:date>2023-05-04T17:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help quick! Percent On Time measure not working with filters?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3220607#M117707</link>
      <description>&lt;P&gt;I also don't know where the 55 is coming from when the page filter is on. I can't figure out which 55 lines are being included and why.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 17:33:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3220607#M117707</guid>
      <dc:creator>aallman</dc:creator>
      <dc:date>2023-05-04T17:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help quick! Percent On Time measure not working with filters?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3222205#M117811</link>
      <description>&lt;P&gt;Without the PBIX a tricky one, but here goes.&lt;BR /&gt;&lt;BR /&gt;Power BI will work within the context of the row it is looking at.&lt;BR /&gt;To remove the context use the ALL or possibly ALLSELECTED Keyword in your calculate measures.&lt;BR /&gt;So any measure referring to&amp;nbsp;CVD_OTD_FTMS_IV should wrap ALL(CVD_OTD_FTMS_IV) in it s CALCULATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:21:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3222205#M117811</guid>
      <dc:creator>BiNavPete</dc:creator>
      <dc:date>2023-05-05T13:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help quick! Percent On Time measure not working with filters?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3222546#M117846</link>
      <description>&lt;P&gt;You mean in place of the REMOVEFILTERS part of the formula? I am not sure where to put ALL in this formula:&lt;/P&gt;&lt;PRE&gt;CALCULATE(DISTINCTCOUNT(CVD_OTD_FTMS_IV[Reference Number]),REMOVEFILTERS(CVD_OTD_FTMS_IV[On Time Ship]))&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 May 2023 16:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3222546#M117846</guid>
      <dc:creator>aallman</dc:creator>
      <dc:date>2023-05-05T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help quick! Percent On Time measure not working with filters?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3222610#M117859</link>
      <description>&lt;P&gt;yes in place of the REMOVEFILTERS&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 16:58:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3222610#M117859</guid>
      <dc:creator>BiNavPete</dc:creator>
      <dc:date>2023-05-05T16:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help quick! Percent On Time measure not working with filters?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3222696#M117871</link>
      <description>&lt;P&gt;That didn't work, if I use ALLSELECTED the value becomes 25 just like the late count. If I use ALL then the value becomes 4M which is the total rows I have in my dataset.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 18:12:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3222696#M117871</guid>
      <dc:creator>aallman</dc:creator>
      <dc:date>2023-05-05T18:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help quick! Percent On Time measure not working with filters?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3223742#M117980</link>
      <description>&lt;P&gt;Not sure where to go next without a PBIX to work with.&lt;/P&gt;&lt;P&gt;Sorry&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 14:40:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-quick-Percent-On-Time-measure-not-working-with-filters/m-p/3223742#M117980</guid>
      <dc:creator>BiNavPete</dc:creator>
      <dc:date>2023-05-07T14:40:45Z</dc:date>
    </item>
  </channel>
</rss>

