<?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 Monthly variation by customer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-variation-by-customer/m-p/3795125#M148314</link>
    <description>&lt;P&gt;Hi!&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have a sales dashboard and I need a table containing a "ranking" with customers with the biggest variations , in quantity of orders and/or sales value (Upsell and downsell), between specific months, for example, between January and March.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I already have the general sales variation between one month and the previous one, but I need to specify each customer (out of a total of 300+, most of them are recurring) and also be able to select which months specifically I want to check this variation, but I'm&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;stuck &lt;span class="lia-unicode-emoji" title=":confounded_face:"&gt;😖&lt;/span&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2024 21:38:00 GMT</pubDate>
    <dc:creator>brunodsg</dc:creator>
    <dc:date>2024-03-27T21:38:00Z</dc:date>
    <item>
      <title>Monthly variation by customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-variation-by-customer/m-p/3795125#M148314</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I have a sales dashboard and I need a table containing a "ranking" with customers with the biggest variations , in quantity of orders and/or sales value (Upsell and downsell), between specific months, for example, between January and March.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I already have the general sales variation between one month and the previous one, but I need to specify each customer (out of a total of 300+, most of them are recurring) and also be able to select which months specifically I want to check this variation, but I'm&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;stuck &lt;span class="lia-unicode-emoji" title=":confounded_face:"&gt;😖&lt;/span&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 21:38:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-variation-by-customer/m-p/3795125#M148314</guid>
      <dc:creator>brunodsg</dc:creator>
      <dc:date>2024-03-27T21:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly variation by customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-variation-by-customer/m-p/3795574#M148346</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file whether it suits your requirement.&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;&lt;img /&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;Sales: = 
SUM(sales_fact[sales])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/offset-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;OFFSET function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales prev month: = 
CALCULATE (
    SUM ( sales_fact[sales] ),
    OFFSET (
        -1,
        ALL ( calendar_dimension[Year-Month sort], calendar_dimension[Year-Month] ),
        ORDERBY ( calendar_dimension[Year-Month sort], ASC )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/rank-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;RANK function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Diff rank: = 
IF (
    NOT ISBLANK ( [Sales prev month:] ) &amp;amp;&amp;amp; NOT ISBLANK ( [Sales:] ),
    RANK (
        SKIP,
        ALL ( customer_dimension[customer] ),
        ORDERBY ( [Sales:] - [Sales prev month:], DESC )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 04:09:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-variation-by-customer/m-p/3795574#M148346</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-03-28T04:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly variation by customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-variation-by-customer/m-p/3797171#M148400</link>
      <description>&lt;P&gt;Hi Jihwan_Kim,&amp;nbsp;&lt;BR /&gt;First of all, I would like to thank you so much!&lt;BR /&gt;My semantic model is very similar to yours, and your model and DAX worked very well, specially the ranking, but I still need some adjustments:&lt;BR /&gt;I want to be able to select witch months (ou even a group) I need to campare, for example:&lt;BR /&gt;January 2023 and July 2023&lt;BR /&gt;Or a group of months:&lt;BR /&gt;Jan + Fev to Mar + Apr&lt;BR /&gt;I really don't know how I can make it works.&lt;BR /&gt;I'll also include a percentage column, but it's easy.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 14:46:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-variation-by-customer/m-p/3797171#M148400</guid>
      <dc:creator>brunodsg</dc:creator>
      <dc:date>2024-03-28T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly variation by customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-variation-by-customer/m-p/3797982#M148444</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message.&lt;/P&gt;
&lt;P&gt;Can you show the slicer that selects the periods based on the users request? It would be great if I can learn more about how your period_comparing_slicer looks like.&lt;/P&gt;
&lt;P&gt;Or, please share your sample pbix file's link here, and then I can try to look into it.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 03:37:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-variation-by-customer/m-p/3797982#M148444</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-03-29T03:37:36Z</dc:date>
    </item>
  </channel>
</rss>

