<?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: PercentileX.INC returns blank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PercentileX-INC-returns-blank/m-p/4162286#M165370</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1995" data-lia-user-login="itchyeyeballs" class="lia-mention lia-mention-user"&gt;itchyeyeballs&lt;/a&gt;&amp;nbsp;, Try below method&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use ALL Function: Modify your DAX formula to use the ALL function to ignore any filters on Table1[Group1]. This can help in ensuring that the percentile calculation considers all values regardless of the slicer selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PERCENTILEX.INC(ALL(Table1[Group1]), [KPI], 0.5)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Check KPI Calculation: Ensure that the [KPI] measure is correctly calculated and does not return blank or error values. You can add a check to handle any potential division by zero or other issues:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KPI = IF(&lt;BR /&gt;ISBLANK([KPI_Denominator]) || [KPI_Denominator] = 0,&lt;BR /&gt;BLANK(),&lt;BR /&gt;DIVIDE([KPI_Numerator], [KPI_Denominator])&lt;BR /&gt;)&lt;BR /&gt;Debugging: Create a table visualization to display the values of Table1[Group1] and [KPI] to ensure that the data is as expected and there are no unexpected blanks or errors.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2024 12:27:30 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2024-09-20T12:27:30Z</dc:date>
    <item>
      <title>PercentileX.INC returns blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PercentileX-INC-returns-blank/m-p/4162240#M165368</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do a simple percentilex.inc calculation but the result is returning blank unless I manually select all the values I am grouping on.&lt;BR /&gt;&lt;BR /&gt;The DAX is&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PERCENTILEX.INC(VALUES(Table1[Group1]),[KPI],.5)&lt;/LI-CODE&gt;&lt;P&gt;[KPI] is just a simple measure based on two integer fields&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;KPI = DIVIDE(
			[KPI_Numerator],
			[KPI_Denominator]
		)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If I add a slicer and manually select all the group1 values then a result is shown, however if I "select all" in the slicer it returns to blank.&lt;BR /&gt;&lt;BR /&gt;I have added a filer on the report so there are no blank or empty group1 values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any suggestions as to how I can resolve?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 11:57:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PercentileX-INC-returns-blank/m-p/4162240#M165368</guid>
      <dc:creator>itchyeyeballs</dc:creator>
      <dc:date>2024-09-20T11:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: PercentileX.INC returns blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PercentileX-INC-returns-blank/m-p/4162286#M165370</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1995" data-lia-user-login="itchyeyeballs" class="lia-mention lia-mention-user"&gt;itchyeyeballs&lt;/a&gt;&amp;nbsp;, Try below method&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use ALL Function: Modify your DAX formula to use the ALL function to ignore any filters on Table1[Group1]. This can help in ensuring that the percentile calculation considers all values regardless of the slicer selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PERCENTILEX.INC(ALL(Table1[Group1]), [KPI], 0.5)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Check KPI Calculation: Ensure that the [KPI] measure is correctly calculated and does not return blank or error values. You can add a check to handle any potential division by zero or other issues:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KPI = IF(&lt;BR /&gt;ISBLANK([KPI_Denominator]) || [KPI_Denominator] = 0,&lt;BR /&gt;BLANK(),&lt;BR /&gt;DIVIDE([KPI_Numerator], [KPI_Denominator])&lt;BR /&gt;)&lt;BR /&gt;Debugging: Create a table visualization to display the values of Table1[Group1] and [KPI] to ensure that the data is as expected and there are no unexpected blanks or errors.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 12:27:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PercentileX-INC-returns-blank/m-p/4162286#M165370</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-09-20T12:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: PercentileX.INC returns blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PercentileX-INC-returns-blank/m-p/4162706#M165388</link>
      <description>&lt;P&gt;Thank you, you helped me get on the right track.&lt;BR /&gt;&lt;BR /&gt;I got it working with&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= PERCENTILEX.INC(
			Summarize(
				Facttable,
				Table1[Group1])
			),
			[KPI],
			0.5
		)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still have no idea why values acted as it did though.&lt;/P&gt;&lt;P&gt;Once I was happy it was workng I enhanced it to enable me to filter out smaller groups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;KPI = PERCENTILEX.INC(
			FILTER(
				ALLSELECTED(Table1[Group1]),
				[KPI_Denominator] &amp;gt;= 5
			),
			[KPI],
			0.5
		)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 14:24:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/PercentileX-INC-returns-blank/m-p/4162706#M165388</guid>
      <dc:creator>itchyeyeballs</dc:creator>
      <dc:date>2024-09-20T14:24:43Z</dc:date>
    </item>
  </channel>
</rss>

