<?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: Third quartile function does not give the correct value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2377997#M61347</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please refer to my pbix file to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a measure.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(PERCENTILEX.INC(Sheet1,[Actvalue],.75),FILTER(ALL(Sheet1),Sheet1[ICD10_PrincipalDiagnosisKey]=SELECTEDVALUE(Sheet1[ICD10_PrincipalDiagnosisKey])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I have miunderstood your meaning, please provide your desired output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 07:45:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-07T07:45:12Z</dc:date>
    <item>
      <title>Third quartile function does not give the correct value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2367359#M60638</link>
      <description>&lt;P&gt;Hi everyon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have been trying to solve this problem but I could not, i hope someone has faced the same problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have multiple Tables, the important ones are:&lt;/P&gt;&lt;P&gt;KPI_fact&lt;/P&gt;&lt;P&gt;Hospitals&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KPI_fact has tow importent columns:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;[&lt;STRONG&gt;Numerator&lt;/STRONG&gt;], [&lt;STRONG&gt;denominator]&lt;/STRONG&gt;&amp;nbsp;and Provider ID , ID of&amp;nbsp;diagnosis.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I create new measure for&lt;/P&gt;&lt;P&gt;ActualValue =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var a = SUM('KPI_fact '[Numerator]) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var b = SUM('KPI_fact '[Denominator] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return DIVIDE(a,b)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I create another measure to Qaluclate the third-Qurtile for each Hospital after Suming:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Q3 = (PERCENTILEX.INC(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL ('KPI_fact'[IDofdiagnosis]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[ActualValue ],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;0.75&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;____&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is the Table with ActualValue and Hospital IDs , I added filter for one ID of&amp;nbsp;diagnosis in the visual.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;and this is the table after adding the Third Qurtile measure&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i need is Just one Value for ALL the KPIValue values in the table, thirdQurtile should be 1, I tested it in EXCEL&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the measure to Consider just the KPIvalue that disply in the table to do Calculation on. not else!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if there is anything unclear , please ask.&amp;nbsp;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 12:54:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2367359#M60638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-01T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Third quartile function does not give the correct value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2367505#M60641</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3rd Quartile KPI =&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;ThirdQuartile&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[Q3]&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&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;[Actual Value]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= Third&lt;/SPAN&gt;&lt;SPAN&gt;Quartile&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Q3"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"-"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;You can substitute "1" where I have "Q3"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I hope this is what you are looking for!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Mar 2022 14:02:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2367505#M60641</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-01T14:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Third quartile function does not give the correct value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2367559#M60647</link>
      <description>&lt;P&gt;thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem is in the third qurtile value. the value is not correct. i think the measure read another data not same data in the table. try to calculate the values in the table manully and find the thirdQ. you will find it wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 14:16:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2367559#M60647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-01T14:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Third quartile function does not give the correct value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2374401#M61074</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Since your data is rather vague, I recreated a simple sample. Please refer to my pbix file to see if it helps you.&lt;/P&gt;
&lt;P&gt;My measure formula is&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _a =
    SUM ( 'Table (2)'[Numerator] )
VAR _b =
    SUM ( 'Table (2)'[denominator] )
RETURN
    DIVIDE ( _a, _b )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;this is the table after adding the Third Qurtile measure.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure2= PERCENTILEX.INC(ALL('Table (2)'),[Measure],.75)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide your pbix file without privacy information and desired output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 07:47:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2374401#M61074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T07:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Third quartile function does not give the correct value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2374967#M61109</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;If you share your data model it will be easier to answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you create this for each quartile:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Q3 = (PERCENTILEX.INC(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL ('KPI_fact'[IDofdiagnosis]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[ActualValue ],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;0.75&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;other versions&amp;nbsp; &amp;gt;&amp;gt;&amp;gt;.25, .5&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;You can aslo try this version, applied to yuor data :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Customer Sales 25th Percentile 2 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PERCENTILEX.INC&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt; &lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Sales Amount]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Sales Amount]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.25&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Mar 2022 12:27:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2374967#M61109</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-04T12:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Third quartile function does not give the correct value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2376433#M61224</link>
      <description>&lt;P&gt;Can't thank you enough.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i provided pbix file so you can understand my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i change dignosis id its give me the same result of Q3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want it to consider the filter&amp;nbsp;&lt;/P&gt;&lt;P&gt;it should see the filter then do the Qalqulation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I want the process to be as follows:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;the filter is applied and then the third َQurtile of the data that appeared after the filter is calculated.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN&gt;The Q-value must be one Q-value for all filtered data.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN&gt;In short, I want to see the third Qurtile for each diagnosis-id I choose.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;A href="https://1drv.ms/u/s!Aq9zJ_nzPp5fdhe2kzxQUUwQUSw?e=Tvx6Zm" target="_blank" rel="noopener"&gt;ThirdQurtilefile&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 14:20:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2376433#M61224</guid>
      <dc:creator>SalmanABDul_97</dc:creator>
      <dc:date>2022-03-05T14:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Third quartile function does not give the correct value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2377264#M61310</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I have this so far.&lt;/P&gt;&lt;P&gt;&lt;A title="Q3" href="https://drive.google.com/file/d/1JGQKQxFTFkllOCFciQNeFE7xNljaUd14/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1JGQKQxFTFkllOCFciQNeFE7xNljaUd14/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the third quartile is against all the values. Is that what you are looking for or for each diagnosis the third quartile? Many diagnosis look to have low entries. I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2022 20:03:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2377264#M61310</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-06T20:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Third quartile function does not give the correct value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2377997#M61347</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please refer to my pbix file to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a measure.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(PERCENTILEX.INC(Sheet1,[Actvalue],.75),FILTER(ALL(Sheet1),Sheet1[ICD10_PrincipalDiagnosisKey]=SELECTEDVALUE(Sheet1[ICD10_PrincipalDiagnosisKey])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I have miunderstood your meaning, please provide your desired output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 07:45:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Third-quartile-function-does-not-give-the-correct-value/m-p/2377997#M61347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-07T07:45:12Z</dc:date>
    </item>
  </channel>
</rss>

