<?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: Dynamic percentile of pivot revenue measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3287734#M122284</link>
    <description>&lt;P&gt;Hi, I have finally had chance to replicate in BI and show. In the dynamic industry type the points go from 1-6 however that its returning 4-6. I have put in measures that return the 20th and 80th percentile to show the difference when looking at industry vs customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried about 10 different ways but I think I am too inexperienced with this type of nuance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/f/s!ArjPo2LOMewbgfEqvK2F49KfJVjvqw" target="_blank"&gt;PowerBI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't attach my PBIX file so above is a onedrive link that I have shared access to&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 10:50:40 GMT</pubDate>
    <dc:creator>king4646</dc:creator>
    <dc:date>2023-06-16T10:50:40Z</dc:date>
    <item>
      <title>Dynamic percentile of pivot revenue measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3253950#M120124</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hello,&amp;nbsp;I have a dataset that I isolate by industry types and customers. Operating in excel office 365&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking at recreating industy revenue points dynamically based on what is in the pivot table so that if I filter by month or quarter etc the percentiles change within the measure. Currently I have taken all values of revenue manually and plugged them into a measure manually as shown in the image. Scoring 1 if under 20% percentile, 2 if between 24816 and 47598 etc up to 6 point. I want to then translate that across to customers instead of industries&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is this possible?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 19:31:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3253950#M120124</guid>
      <dc:creator>king4646</dc:creator>
      <dc:date>2023-05-25T19:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic percentile of pivot revenue measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3255977#M120245</link>
      <description>&lt;P&gt;can any pros help&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 21:11:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3255977#M120245</guid>
      <dc:creator>king4646</dc:creator>
      <dc:date>2023-05-26T21:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic percentile of pivot revenue measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3257294#M120325</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460879" data-lia-user-login="king4646" class="lia-mention lia-mention-user"&gt;king4646&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, you want to "&lt;SPAN&gt;Dynamic percentile of pivot revenue measure&lt;/SPAN&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here are the steps you can refer to :&lt;BR /&gt;(1)This is my test data:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2)We can create a measrue like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = var _20= PERCENTILEX.INC(ADDCOLUMNS( ALLSELECTED('Table'[Industry]) ,"Sum of Revenue" , CALCULATE(SUM('Table'[Revenue]))) , [Sum of Revenue] , 0.2)
var _40 = PERCENTILEX.INC(ADDCOLUMNS( ALLSELECTED('Table'[Industry]) ,"Sum of Revenue" , CALCULATE(SUM('Table'[Revenue]))) , [Sum of Revenue] , 0.4)
var _60 = PERCENTILEX.INC(ADDCOLUMNS( ALLSELECTED('Table'[Industry]) ,"Sum of Revenue" , CALCULATE(SUM('Table'[Revenue]))) , [Sum of Revenue] , 0.6)
var _80 = PERCENTILEX.INC(ADDCOLUMNS( ALLSELECTED('Table'[Industry]) ,"Sum of Revenue" , CALCULATE(SUM('Table'[Revenue]))) , [Sum of Revenue] , 0.8)
var _90 = PERCENTILEX.INC(ADDCOLUMNS( ALLSELECTED('Table'[Industry]) ,"Sum of Revenue" , CALCULATE(SUM('Table'[Revenue]))) , [Sum of Revenue] , 0.9)
var _100 = PERCENTILEX.INC(ADDCOLUMNS( ALLSELECTED('Table'[Industry]) ,"Sum of Revenue" , CALCULATE(SUM('Table'[Revenue]))) , [Sum of Revenue] , 1)
var _revenue = SUM('Table'[Revenue])
return
IF( _revenue &amp;lt; _20 ,1, IF(_revenue &amp;gt;= _20 &amp;amp;&amp;amp;_revenue&amp;lt;_40 ,2 ,IF( _revenue &amp;gt;=_40 &amp;amp;&amp;amp; _revenue&amp;lt;_60 ,3, IF(_revenue&amp;gt;=_60 &amp;amp;&amp;amp; _revenue &amp;lt; _80 , 4 , IF(_revenue&amp;gt;=_80 &amp;amp;&amp;amp; _revenue &amp;lt; _90 ,5 , 6)))))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(3)Then we can put it on the visual , the result is as follows:&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data&lt;/STRONG&gt; and the &lt;STRONG&gt;desired output sample&lt;/STRONG&gt; data in the form of &lt;STRONG&gt;tables&lt;/STRONG&gt;, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 03:52:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3257294#M120325</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-05-29T03:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic percentile of pivot revenue measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3274999#M121476</link>
      <description>&lt;P&gt;Sorry for the delay I was on holiday. Thank you very much! It worked perfectly in that situation however when I try to adapt to a customer level it hasn't worked. Could you please assist further?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my sample excel file is on the link below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1qJ1FQmAeGcc_Wh6dK1_cRsiDW2NE000R/edit?usp=drive_link&amp;amp;ouid=118435087330547460302&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1qJ1FQmAeGcc_Wh6dK1_cRsiDW2NE000R/edit?usp=drive_link&amp;amp;ouid=118435087330547460302&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 15:35:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3274999#M121476</guid>
      <dc:creator>king4646</dc:creator>
      <dc:date>2023-06-08T15:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic percentile of pivot revenue measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3276048#M121530</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460879" data-lia-user-login="king4646" class="lia-mention lia-mention-user"&gt;king4646&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response!According to your description, when you&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;adapt to a customer level it hasn't worked.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;And i try to access your url , it return 401 and i have no access to it .&lt;/P&gt;
&lt;P&gt;For this , you can try to replace all the "'Table'[Industry]" to&amp;nbsp;'Table'[&lt;SPAN&gt;customer&lt;/SPAN&gt;] if it can help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 07:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3276048#M121530</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-06-09T07:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic percentile of pivot revenue measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3287734#M122284</link>
      <description>&lt;P&gt;Hi, I have finally had chance to replicate in BI and show. In the dynamic industry type the points go from 1-6 however that its returning 4-6. I have put in measures that return the 20th and 80th percentile to show the difference when looking at industry vs customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried about 10 different ways but I think I am too inexperienced with this type of nuance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/f/s!ArjPo2LOMewbgfEqvK2F49KfJVjvqw" target="_blank"&gt;PowerBI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't attach my PBIX file so above is a onedrive link that I have shared access to&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 10:50:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3287734#M122284</guid>
      <dc:creator>king4646</dc:creator>
      <dc:date>2023-06-16T10:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic percentile of pivot revenue measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3293076#M122612</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp;please are you able to offer any further support?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 11:34:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-percentile-of-pivot-revenue-measure/m-p/3293076#M122612</guid>
      <dc:creator>king4646</dc:creator>
      <dc:date>2023-06-20T11:34:18Z</dc:date>
    </item>
  </channel>
</rss>

