<?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 Compare each week vs Mean value and distinct count products satisfying condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2199962#M51632</link>
    <description>&lt;P&gt;Hi Everyone!&lt;/P&gt;&lt;P&gt;This is my first post on PBI forum!&lt;/P&gt;&lt;P&gt;I am working on a problem where we are trying to identify the UPCs (products) which have taken a price increase over a period of 4 weeks by comparing against the mean price of each UPC for 6 weeks. I have attached the PBIX file for reference. The data in the file has columns UPC and Week and some fact columns (Value, Volume, Price)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to PBIX file:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1pgaMe3JpPNVdoZYwJtIDRyoTlrQg8d_e/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1pgaMe3JpPNVdoZYwJtIDRyoTlrQg8d_e/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sample of the data looks like this (full data in the PBIX file shared):&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;UPC&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Week&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Value Sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Volume Sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Avg_Price&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;6128&lt;/TD&gt;&lt;TD&gt;4002&lt;/TD&gt;&lt;TD&gt;1.531234383&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4003&lt;/TD&gt;&lt;TD&gt;9462&lt;/TD&gt;&lt;TD&gt;0.423060664&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2702&lt;/TD&gt;&lt;TD&gt;964&lt;/TD&gt;&lt;TD&gt;2.802904564&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2760&lt;/TD&gt;&lt;TD&gt;5294&lt;/TD&gt;&lt;TD&gt;0.521344919&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count of distinct UPCs where each of the latest 4 weeks Price is greater than Mean Price of 6 weeks.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calculate Mean of Price for 6 weeks (this number will change later and the range of weeks will later be dynamic)&lt;/LI&gt;&lt;LI&gt;Compare each of the 1st 4 weeks with the mean value&lt;/LI&gt;&lt;LI&gt;If all the weeks are greater than mean, count the SKU, else ignore.&lt;/LI&gt;&lt;LI&gt;Finally show total count of SKUs where this condition is satisfied.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This needs to be measure driven to be scalable. Users would want to select a particular period and the calculation needs to be dynamic based on the selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Process:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Summarize data at UPC and week level and create columns with ADDCOLUMNS function à Price and Mean Price&lt;/LI&gt;&lt;LI&gt;Filter out with function FILTER the weeks I do not need to compare (e.g. weeks 5 to 8 in this data)&lt;/LI&gt;&lt;LI&gt;Further calculate the minimum of Price – Mean at UPC level&lt;/LI&gt;&lt;LI&gt;Count UPCs where the minimum is greater than 0 (or any threshold)&lt;/LI&gt;&lt;LI&gt;Below is the measure.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;Cont_Growth =&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var Mean_Price = filter(addcolumns(SUMMARIZE(Dummy_Data,Dummy_Data[UPC],Dummy_Data[Week]), "Price",divide(CALCULATE(SUM(Dummy_Data[Value Sales])), CALCULATE(SUM(Dummy_Data[Volume Sales]))),"Mean", CALCULATE(average(Dummy_Data[Avg_Price]),ALLSELECTED(Dummy_Data[Week]),Dummy_Data[Week] &amp;lt;7)),Dummy_Data[Week]&amp;lt;5)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var min_Price = MINX(Mean_Price,[Price] - ([Mean]))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var final = FILTER(ADDCOLUMNS(summarize(Dummy_Data,Dummy_Data[UPC]),"Cond_check2", min_Price),[Cond_check2] &amp;gt; -.45)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return COUNTAX(final,Dummy_Data[UPC])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When all the UPCs are satisfying the condition, I get the correct count. Else, I am still getting the correct count within UPC context. However, as a total I am getting a blank(). Please see image below. Here I have given condition of Price - Mean &amp;gt; -.45 just to check the below scenario.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated! Pretty stuck on this problem! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shamik&lt;/P&gt;</description>
    <pubDate>Sun, 21 Nov 2021 13:23:11 GMT</pubDate>
    <dc:creator>shamikdas</dc:creator>
    <dc:date>2021-11-21T13:23:11Z</dc:date>
    <item>
      <title>Compare each week vs Mean value and distinct count products satisfying condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2199962#M51632</link>
      <description>&lt;P&gt;Hi Everyone!&lt;/P&gt;&lt;P&gt;This is my first post on PBI forum!&lt;/P&gt;&lt;P&gt;I am working on a problem where we are trying to identify the UPCs (products) which have taken a price increase over a period of 4 weeks by comparing against the mean price of each UPC for 6 weeks. I have attached the PBIX file for reference. The data in the file has columns UPC and Week and some fact columns (Value, Volume, Price)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to PBIX file:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1pgaMe3JpPNVdoZYwJtIDRyoTlrQg8d_e/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1pgaMe3JpPNVdoZYwJtIDRyoTlrQg8d_e/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sample of the data looks like this (full data in the PBIX file shared):&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;UPC&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Week&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Value Sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Volume Sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Avg_Price&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;6128&lt;/TD&gt;&lt;TD&gt;4002&lt;/TD&gt;&lt;TD&gt;1.531234383&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4003&lt;/TD&gt;&lt;TD&gt;9462&lt;/TD&gt;&lt;TD&gt;0.423060664&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2702&lt;/TD&gt;&lt;TD&gt;964&lt;/TD&gt;&lt;TD&gt;2.802904564&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2760&lt;/TD&gt;&lt;TD&gt;5294&lt;/TD&gt;&lt;TD&gt;0.521344919&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count of distinct UPCs where each of the latest 4 weeks Price is greater than Mean Price of 6 weeks.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calculate Mean of Price for 6 weeks (this number will change later and the range of weeks will later be dynamic)&lt;/LI&gt;&lt;LI&gt;Compare each of the 1st 4 weeks with the mean value&lt;/LI&gt;&lt;LI&gt;If all the weeks are greater than mean, count the SKU, else ignore.&lt;/LI&gt;&lt;LI&gt;Finally show total count of SKUs where this condition is satisfied.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This needs to be measure driven to be scalable. Users would want to select a particular period and the calculation needs to be dynamic based on the selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Process:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Summarize data at UPC and week level and create columns with ADDCOLUMNS function à Price and Mean Price&lt;/LI&gt;&lt;LI&gt;Filter out with function FILTER the weeks I do not need to compare (e.g. weeks 5 to 8 in this data)&lt;/LI&gt;&lt;LI&gt;Further calculate the minimum of Price – Mean at UPC level&lt;/LI&gt;&lt;LI&gt;Count UPCs where the minimum is greater than 0 (or any threshold)&lt;/LI&gt;&lt;LI&gt;Below is the measure.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;Cont_Growth =&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var Mean_Price = filter(addcolumns(SUMMARIZE(Dummy_Data,Dummy_Data[UPC],Dummy_Data[Week]), "Price",divide(CALCULATE(SUM(Dummy_Data[Value Sales])), CALCULATE(SUM(Dummy_Data[Volume Sales]))),"Mean", CALCULATE(average(Dummy_Data[Avg_Price]),ALLSELECTED(Dummy_Data[Week]),Dummy_Data[Week] &amp;lt;7)),Dummy_Data[Week]&amp;lt;5)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var min_Price = MINX(Mean_Price,[Price] - ([Mean]))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var final = FILTER(ADDCOLUMNS(summarize(Dummy_Data,Dummy_Data[UPC]),"Cond_check2", min_Price),[Cond_check2] &amp;gt; -.45)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return COUNTAX(final,Dummy_Data[UPC])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When all the UPCs are satisfying the condition, I get the correct count. Else, I am still getting the correct count within UPC context. However, as a total I am getting a blank(). Please see image below. Here I have given condition of Price - Mean &amp;gt; -.45 just to check the below scenario.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated! Pretty stuck on this problem! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shamik&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 13:23:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2199962#M51632</guid>
      <dc:creator>shamikdas</dc:creator>
      <dc:date>2021-11-21T13:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compare each week vs Mean value and distinct count products satisfying condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2203660#M51772</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251005" data-lia-user-login="shamikdas" class="lia-mention lia-mention-user"&gt;shamikdas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what you want in Total as Distinct count products, in your sample it should be 3 or 8? I am taking 8&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sligtly modified yours&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cont_Growth 1 = 

var Mean_Price = filter(addcolumns(SUMMARIZE(Dummy_Data,Dummy_Data[UPC],Dummy_Data[Week]),
 "Price",divide(CALCULATE(SUM(Dummy_Data[Value Sales])), CALCULATE(SUM(Dummy_Data[Volume Sales]))),
 "Mean", CALCULATE(average(Dummy_Data[Avg_Price]),ALLSELECTED(Dummy_Data[Week]),Dummy_Data[Week] &amp;lt;7)),
Dummy_Data[Week]&amp;lt;5)

var final =FILTER( ADDCOLUMNS(Mean_Price,"check",[Price]-[Mean]),[check]&amp;gt;-.45)

return 
COUNTROWS(final)&lt;/LI-CODE&gt;
&lt;P&gt;another way, the same result&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cont_Growth 2 = 

VAR T1=GENERATE(GROUPBY(Dummy_Data,Dummy_Data[UPC],Dummy_Data[Week]),
    VAR Price1=divide(CALCULATE(SUM(Dummy_Data[Value Sales])), CALCULATE(SUM(Dummy_Data[Volume Sales])))
    VAR Mean1=CALCULATE(average(Dummy_Data[Avg_Price]),ALLSELECTED(Dummy_Data[Week]),Dummy_Data[Week] &amp;lt;7)
    VAR check=Price1-Mean1
    RETURN
    ROW("CHECK",check))


VAR final =FILTER( T1,[CHECK]&amp;gt;-.45&amp;amp;&amp;amp;Dummy_Data[Week]&amp;lt;5)

RETURN
COUNTROWS(final)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 12:29:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2203660#M51772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-23T12:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compare each week vs Mean value and distinct count products satisfying condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2204935#M51850</link>
      <description>&lt;P&gt;Thanks Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;To your question below:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;I am not sure what you want in Total as Distinct count products, in your sample it should be 3 or 8? I am taking 8&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would want the output to show 1 here. The reason is that out of the 3 products (1111, 2222, 3333) only 1 product satisfies the condition for all 4 time periods. If you see above example, the products 2222 and 3333 satisfy the condition in 3 out of 4 weeks and 1 out of 4 weeks respectively. Hence I would like to ignore these products and only count the 1st one.&lt;/P&gt;&lt;P&gt;Is there some way I could achieve this? Appreciate the quick support! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Shamik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 04:20:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2204935#M51850</guid>
      <dc:creator>shamikdas</dc:creator>
      <dc:date>2021-11-24T04:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare each week vs Mean value and distinct count products satisfying condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2204992#M51855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251005" data-lia-user-login="shamikdas" class="lia-mention lia-mention-user"&gt;shamikdas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess I know what you mean&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cont_Growth 1 = 

VAR T1=GENERATE(GROUPBY(Dummy_Data,Dummy_Data[UPC],Dummy_Data[Week]),
    VAR Price1=divide(CALCULATE(SUM(Dummy_Data[Value Sales])), CALCULATE(SUM(Dummy_Data[Volume Sales])))
    VAR Mean1=CALCULATE(average(Dummy_Data[Avg_Price]),ALLSELECTED(Dummy_Data[Week]),Dummy_Data[Week] &amp;lt;7)
    VAR check=IF((Price1-Mean1)&amp;gt;-.45,1,0)
    RETURN
    ROW("CHECK",check))


VAR final =
GROUPBY( FILTER( T1,Dummy_Data[Week]&amp;lt;5),[UPC],
             "total",COUNTX(CURRENTGROUP(),[UPC]),
            "cont",SUMX(CURRENTGROUP(),[CHECK])) 

RETURN
SUMX(final,IF([cont]/[total]=1,1,0))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 05:21:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2204992#M51855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T05:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compare each week vs Mean value and distinct count products satisfying condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2206871#M51980</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251005" data-lia-user-login="shamikdas" class="lia-mention lia-mention-user"&gt;shamikdas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you followed the DAX formula posted by Vera_33 to find the solution to your problem?&lt;/P&gt;
&lt;P&gt;If so, would you like to mark his reply as a solution so that others can learn from it too?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 03:09:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2206871#M51980</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-11-25T03:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compare each week vs Mean value and distinct count products satisfying condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2207215#M51984</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the solution! Works perfectly! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will now try to modify this for my real data which is in star schema format (though I dont expect any issues in that)! I will also try to see if I can pull out the sales for the UPCs satisfying my condition!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shamik&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 07:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-each-week-vs-Mean-value-and-distinct-count-products/m-p/2207215#M51984</guid>
      <dc:creator>shamikdas</dc:creator>
      <dc:date>2021-11-25T07:40:56Z</dc:date>
    </item>
  </channel>
</rss>

