<?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: help with quartile measurement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1658309#M33773</link>
    <description>&lt;P&gt;Dear, good afternoon.&lt;/P&gt;&lt;P&gt;I couldn't get it to work..&lt;BR /&gt;It returns incorrect values ​​to me.&lt;/P&gt;&lt;P&gt;you can do it in the attached file?&lt;/P&gt;&lt;P&gt;I need to calculate the rate that is CONFIRMED SALE / SOLICITATION (it is the measure (% Rate in the file).&lt;/P&gt;&lt;P&gt;On this "rate" I need to classify the best 25% as Q1, Q2 the next 25% and so on until Q4.&lt;/P&gt;&lt;P&gt;This measurement does not work when I include the% Rate measurement, even though creating a calculated column and including it in your example, the classification does not do what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;link powerbi file.&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1yG9TXrUWeDm_LyHiEqEmshu89YPx3JQl/view" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1yG9TXrUWeDm_LyHiEqEmshu89YPx3JQl/view&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 16:31:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-02-10T16:31:59Z</dc:date>
    <item>
      <title>help with quartile measurement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1652448#M33629</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I hope the message finds you well.&lt;/P&gt;&lt;P&gt;I created a measure to find the completed sales rate.&lt;/P&gt;&lt;P&gt;I need to make a quartile to show the 25% salespeople with the worst result (4th quartile),&lt;/P&gt;&lt;P&gt;the other 25% with the second worst rate (3rd quartile),&lt;/P&gt;&lt;P&gt;the 25% with the second best rate (2nd quartile)&lt;/P&gt;&lt;P&gt;and the 25% with the best rate (1st quartile).&lt;/P&gt;&lt;P&gt;I tried the measure below, but it didn't work, does anyone have an idea to help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link.&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1yG9TXrUWeDm_LyHiEqEmshu89YPx3JQl/view?usp=sharing" target="_blank" rel="noopener"&gt;arquivo.pbi&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quartile =&lt;BR /&gt;var FirstQ = PERCENTILEX.INC(Quartile,[% Rate],0.25)&lt;BR /&gt;var SecondQ = PERCENTILEX.INC(Quartile,[% Rate],0.50)&lt;BR /&gt;var ThirdQ = PERCENTILEX.INC(Quartile,[% Rate],0.75)&lt;BR /&gt;var ThisVal = [% Rate]&lt;BR /&gt;return&lt;BR /&gt;IF(HASONEVALUE(Quartile,[% Rate]),&lt;BR /&gt;IF(ThisVal &amp;lt;= FirstQ, 1,&lt;BR /&gt;IF(ThisVal &amp;gt;FirstQ &amp;amp;&amp;amp; ThisVal &amp;lt;= SecondQ, 2,&lt;BR /&gt;IF(ThisVal &amp;gt;SecondQ &amp;amp;&amp;amp; ThisVal &amp;lt;=ThirdQ,3, 4)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&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;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 19:19:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1652448#M33629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-08T19:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: help with quartile measurement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1652722#M33634</link>
      <description>&lt;P&gt;Try ALL() around your table. I tried this on a dummy table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_test = 
var __1Q = PERCENTILEX.INC(ALL(Query1), Query1[Value],0.25)
var __2Q = PERCENTILEX.INC(ALL(Query1), Query1[Value],0.5)
VAR __3Q = PERCENTILEX.INC(ALL(Query1), Query1[Value],0.75)
VAR __4Q = PERCENTILEX.INC(ALL(Query1), Query1[Value],1)
VAR __value = SELECTEDVALUE(Query1[Value])
RETURN
SWITCH(
    TRUE(),
    __value &amp;lt;= __1Q, 1,
    __value &amp;lt;= __2Q, 2,
    __value &amp;lt;= __3Q, 3,
    4
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 18:39:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1652722#M33634</guid>
      <dc:creator>JW_van_Holst</dc:creator>
      <dc:date>2021-02-08T18:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: help with quartile measurement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1652750#M33635</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284183" data-lia-user-login="JW_van_Holst" class="lia-mention lia-mention-user"&gt;JW_van_Holst&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the feedback, but I was unable to apply the code.&lt;/P&gt;&lt;P&gt;Can you show me in the file how it would look?&lt;/P&gt;&lt;P&gt;File link in pbi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Arquivo.pbi" href="https://drive.google.com/file/d/1yG9TXrUWeDm_LyHiEqEmshu89YPx3JQl/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1yG9TXrUWeDm_LyHiEqEmshu89YPx3JQl/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 18:50:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1652750#M33635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-08T18:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: help with quartile measurement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1658260#M33771</link>
      <description>&lt;P&gt;Try ALL() around your tabel. I tried this on a dummy table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_test = 
var __1Q = PERCENTILEX.INC(ALL(Query1), Query1[Value],0.25)
var __2Q = PERCENTILEX.INC(ALL(Query1), Query1[Value],0.5)
VAR __3Q = PERCENTILEX.INC(ALL(Query1), Query1[Value],0.75)
VAR __4Q = PERCENTILEX.INC(ALL(Query1), Query1[Value],1)
VAR __value = SELECTEDVALUE(Query1[Value])
RETURN
SWITCH(
    TRUE(),
    __value &amp;lt;= __1Q, 1,
    __value &amp;lt;= __2Q, 2,
    __value &amp;lt;= __3Q, 3,
    4
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 16:08:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1658260#M33771</guid>
      <dc:creator>JW_van_Holst</dc:creator>
      <dc:date>2021-02-10T16:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: help with quartile measurement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1658309#M33773</link>
      <description>&lt;P&gt;Dear, good afternoon.&lt;/P&gt;&lt;P&gt;I couldn't get it to work..&lt;BR /&gt;It returns incorrect values ​​to me.&lt;/P&gt;&lt;P&gt;you can do it in the attached file?&lt;/P&gt;&lt;P&gt;I need to calculate the rate that is CONFIRMED SALE / SOLICITATION (it is the measure (% Rate in the file).&lt;/P&gt;&lt;P&gt;On this "rate" I need to classify the best 25% as Q1, Q2 the next 25% and so on until Q4.&lt;/P&gt;&lt;P&gt;This measurement does not work when I include the% Rate measurement, even though creating a calculated column and including it in your example, the classification does not do what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;link powerbi file.&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1yG9TXrUWeDm_LyHiEqEmshu89YPx3JQl/view" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1yG9TXrUWeDm_LyHiEqEmshu89YPx3JQl/view&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 16:31:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-quartile-measurement/m-p/1658309#M33773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-10T16:31:59Z</dc:date>
    </item>
  </channel>
</rss>

