<?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 Calculate Coefficient of Variation for Category in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2394176#M62393</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;you have been very Helpfull to me and i really appreaciate that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to calculate the Coefficent of variance for different Product name. I have 300 Product name&amp;nbsp;&lt;/P&gt;&lt;P&gt;and their Selling Price. Also I will apply outside filter for Regions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the Quick measure in power bi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vari = VARX.P(KEEPFILTERS(VALUES('TABLE'[Product NAME])), CALCULATE [ Selling Price]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Selling Price is Calculated measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the result was 0.00 for all the products. i'm not sure where is the problem ?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 06:45:42 GMT</pubDate>
    <dc:creator>SalmanABDul_97</dc:creator>
    <dc:date>2022-03-15T06:45:42Z</dc:date>
    <item>
      <title>Calculate Coefficient of Variation for Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2394176#M62393</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;you have been very Helpfull to me and i really appreaciate that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to calculate the Coefficent of variance for different Product name. I have 300 Product name&amp;nbsp;&lt;/P&gt;&lt;P&gt;and their Selling Price. Also I will apply outside filter for Regions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the Quick measure in power bi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vari = VARX.P(KEEPFILTERS(VALUES('TABLE'[Product NAME])), CALCULATE [ Selling Price]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Selling Price is Calculated measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the result was 0.00 for all the products. i'm not sure where is the problem ?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 06:45:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2394176#M62393</guid>
      <dc:creator>SalmanABDul_97</dc:creator>
      <dc:date>2022-03-15T06:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Coefficient of Variation for Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2395914#M62504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="364241" data-lia-user-login="SalmanABDul_97" class="lia-mention lia-mention-user"&gt;SalmanABDul_97&lt;/a&gt;&amp;nbsp;, the DAX syntax does not look correct.&amp;nbsp; "Keepfilters(Value('Table'[Product Name]))" will be a table containing one column with Product Names, it will not contain the Selling Price.&amp;nbsp; "Calculate ( [Selling Price] )" would not be correct because it is expecting a column not a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please consider the following&amp;nbsp;&lt;A href="https://dax.guide/varx-p/" target="_blank"&gt;VARX.P - DAX Guide&lt;/A&gt;&amp;nbsp;for more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible that you need to create a table Variable like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;CoV = &lt;BR /&gt; VAR _temp = SUMMARIZE ( Table, Table[Product Name] )&lt;BR /&gt; VAR _add = ADDCOLUMNS ( _Temp, "Add Selling Price" , [Selling Price] )&lt;BR /&gt;  RETURN&lt;BR /&gt;VARX.P( _add, [Add Selling Price] ) &lt;/PRE&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, 15 Mar 2022 16:24:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2395914#M62504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-15T16:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Coefficient of Variation for Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2397216#M62593</link>
      <description>&lt;P&gt;I used this dax function for calculating STD&amp;nbsp;&lt;/P&gt;&lt;P&gt;STD = Calculate(STDEVX.P('fact table', [Value]) , ALLSELECTED () )&lt;/P&gt;&lt;P&gt;the issue with this is it give me wrong std , greater than mean.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;same dax i used to find CV but its give me high cv number &amp;gt;100&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and problem is beacuse it calculate std wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need it dynamic whenever i change out filter it should change so i used ALLSELECTD&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 08:23:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2397216#M62593</guid>
      <dc:creator>SalmanABDul_97</dc:creator>
      <dc:date>2022-03-16T08:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Coefficient of Variation for Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2397271#M62595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="364241" data-lia-user-login="SalmanABDul_97" class="lia-mention lia-mention-user"&gt;SalmanABDul_97&lt;/a&gt;&amp;nbsp;- it difficult to comment with access to the underlying data model, but I am not sure why or if you need CALCULATE to change the filter context.&amp;nbsp; It might help to read the following blog on ALLSELECTED to understand what is happening in the background.&amp;nbsp;&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/" target="_blank"&gt;The definitive guide to ALLSELECTED - SQLBI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 08:36:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2397271#M62595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-16T08:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Coefficient of Variation for Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2443108#M65480</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="364241" data-lia-user-login="SalmanABDul_97" class="lia-mention lia-mention-user"&gt;SalmanABDul_97&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if your problem has been solved? Is the above post helpful to you?&lt;/P&gt;
&lt;P&gt;Could you please consider sharing more details about it&amp;nbsp;and posting expected result so it is clear on what needs to be implemented?&amp;nbsp; And It would be great if there is a sample file without any sesentive information here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It makes it easier to give you a solution.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Sample (dummy dataset) data as text, use the table tool in the editing bar&lt;/LI&gt;
&lt;LI&gt;Expected output from sample data&lt;/LI&gt;
&lt;LI&gt;Explanation in words of how to get from 1. to 2.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Zeon Zheng&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 it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 10:28:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Coefficient-of-Variation-for-Category/m-p/2443108#M65480</guid>
      <dc:creator>v-angzheng-msft</dc:creator>
      <dc:date>2022-04-07T10:28:05Z</dc:date>
    </item>
  </channel>
</rss>

