<?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 Distinct value of one column divided by grand total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2839755#M90708</link>
    <description>&lt;P&gt;I need help figuring out a DAX formula. My data consists of two different surveys from 2019 and 2022. The questions are the same, but the number of responses differ between the years. When I want to compare a survey results of one question between the two years both compare to the Grand Total of all responses collectively because they are both listed in the same collumn.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My Table is called [CRMModel] and the field I want to calculate is called [SurveyName].&lt;BR /&gt;[SurveyName] consists of a total of 407 rows of text with two distinct values, one is "2019Q4" and the other is "Employee Survey 22".&amp;nbsp;[ID] is the total number of rows (individual responses) - but in that group both "2019Q4" and "Employee Survey 22" are included.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I compare the results from one (2019) against the other (2022), it compares both against the grand total.&lt;/P&gt;&lt;P&gt;[SurveyName] (includes below)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Distinctvalue1 "2019Q4" = Quantity 292 pcs (static)&lt;/LI&gt;&lt;LI&gt;Distinctvalue2 "Employee Survey 22" = Number 115 (and increasing)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;[ID] = 407 pcs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Ggrand total for Count of 'CRMModel'[ID] includes both "2019Q4" and "Employee Survey 22" which is = 407&lt;/P&gt;&lt;P&gt;I would like "2019Q4" to count against 292 and "Employee Survey 22" against 115 (or whatever that total ends up being). Is there any DAX formula that can help me with that?&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I've tried the following:&lt;BR /&gt;Count of 2019Q4 = CALCULATE(COUNT(CRMModel[ID], FILTER(CRMModel, CRMModel[SurveyName]="2019Q4"))%2019Q4 =&lt;SPAN&gt;[Count of 2019Q4]/[ID]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But get the following error "The following syntax error occured during parsing: Invalid token, Line 1, Offset 79,%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I appriciate some help to figure out the correct formula. Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 13:23:20 GMT</pubDate>
    <dc:creator>larras</dc:creator>
    <dc:date>2022-10-13T13:23:20Z</dc:date>
    <item>
      <title>Distinct value of one column divided by grand total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2839755#M90708</link>
      <description>&lt;P&gt;I need help figuring out a DAX formula. My data consists of two different surveys from 2019 and 2022. The questions are the same, but the number of responses differ between the years. When I want to compare a survey results of one question between the two years both compare to the Grand Total of all responses collectively because they are both listed in the same collumn.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My Table is called [CRMModel] and the field I want to calculate is called [SurveyName].&lt;BR /&gt;[SurveyName] consists of a total of 407 rows of text with two distinct values, one is "2019Q4" and the other is "Employee Survey 22".&amp;nbsp;[ID] is the total number of rows (individual responses) - but in that group both "2019Q4" and "Employee Survey 22" are included.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I compare the results from one (2019) against the other (2022), it compares both against the grand total.&lt;/P&gt;&lt;P&gt;[SurveyName] (includes below)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Distinctvalue1 "2019Q4" = Quantity 292 pcs (static)&lt;/LI&gt;&lt;LI&gt;Distinctvalue2 "Employee Survey 22" = Number 115 (and increasing)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;[ID] = 407 pcs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Ggrand total for Count of 'CRMModel'[ID] includes both "2019Q4" and "Employee Survey 22" which is = 407&lt;/P&gt;&lt;P&gt;I would like "2019Q4" to count against 292 and "Employee Survey 22" against 115 (or whatever that total ends up being). Is there any DAX formula that can help me with that?&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I've tried the following:&lt;BR /&gt;Count of 2019Q4 = CALCULATE(COUNT(CRMModel[ID], FILTER(CRMModel, CRMModel[SurveyName]="2019Q4"))%2019Q4 =&lt;SPAN&gt;[Count of 2019Q4]/[ID]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But get the following error "The following syntax error occured during parsing: Invalid token, Line 1, Offset 79,%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I appriciate some help to figure out the correct formula. Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 13:23:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2839755#M90708</guid>
      <dc:creator>larras</dc:creator>
      <dc:date>2022-10-13T13:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct value of one column divided by grand total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2839925#M90719</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;divide(CALCULATE(COUNT(CRMModel[ID], CRMModel[SurveyName]="2019Q4"), countrows(CRMModel[ID]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 14:25:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2839925#M90719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-13T14:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct value of one column divided by grand total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2839936#M90721</link>
      <description>&lt;P&gt;Thank you for your quick reply. This is what I get when I use the above formula&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;</description>
      <pubDate>Thu, 13 Oct 2022 14:33:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2839936#M90721</guid>
      <dc:creator>larras</dc:creator>
      <dc:date>2022-10-13T14:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct value of one column divided by grand total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2839953#M90724</link>
      <description>&lt;P&gt;Miss ) see the pic&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;</description>
      <pubDate>Thu, 13 Oct 2022 14:41:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2839953#M90724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-13T14:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct value of one column divided by grand total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2840078#M90732</link>
      <description>&lt;P&gt;It looks like the DAX formula does not recognize the "2019Q4".&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 15:22:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2840078#M90732</guid>
      <dc:creator>larras</dc:creator>
      <dc:date>2022-10-13T15:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct value of one column divided by grand total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2840083#M90733</link>
      <description>&lt;P&gt;Give a pic of your table column it will be easier&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 15:25:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-value-of-one-column-divided-by-grand-total/m-p/2840083#M90733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-13T15:25:00Z</dc:date>
    </item>
  </channel>
</rss>

