<?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: DAX for survey results: % who answered &amp;quot;Strongly Agree&amp;quot; etc for each question in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968804#M43195</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// T is your table
[Total Answers] = COUNTROWS( T )
	
[% of Answers] =
DIVIDE(
	[Total Answers],
	CALCULATE(
		[Total Answers],
		// Response has to be the column
		// you place in the Columns well. Do
		// not use the raw codes. It'll stop
		// working then. Hide them as I don't
		// think anyone would like to see
		// them since they're meaningless
		// to the business user.
		ALLSELECTED( T[Response] )
	)
)&lt;/LI-CODE&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, 20 Jul 2021 16:38:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-20T16:38:19Z</dc:date>
    <item>
      <title>DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1966726#M43125</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Brand new to DAX here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Background:&amp;nbsp; Using dummy survey data to learn DAX.&amp;nbsp; There's 4 survey questions, scored on a Likert scale ("Strongly Agree", etc).&amp;nbsp; I have already recoded the Likert scale answers into codes (a scale of 1 to 4).&amp;nbsp; Here's the data for one of the questions.&amp;nbsp; I am trying to insert a measure to calculate the % that answered with each possible response, for each question.&amp;nbsp; My start with DAX has been rocky even though I am great with Excel functions!&amp;nbsp; Thanks to anyone who might be able to help!&lt;/SPAN&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;</description>
      <pubDate>Mon, 19 Jul 2021 20:51:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1966726#M43125</guid>
      <dc:creator>afaherty</dc:creator>
      <dc:date>2021-07-19T20:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1967303#M43142</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="212704" data-lia-user-login="afaherty" class="lia-mention lia-mention-user"&gt;afaherty&lt;/a&gt; , depending on where you are using &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;divide(countrows(filter(Table, Table[response] =4)), countrows(Table))&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;divide(countrows(filter(Table, Table[response] =4)), countx(all(Table), Table[reponse]))&lt;/P&gt;
&lt;P&gt;or&lt;BR /&gt;divide(countrows(Table), countx(all(Table), Table[reponse]))&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 05:49:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1967303#M43142</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-07-20T05:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968467#M43175</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="212704" data-lia-user-login="afaherty" class="lia-mention lia-mention-user"&gt;afaherty&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAX is not Excel. It's far away removed from it in fact. Secondly, if you want to learn DAX, there's one book that teaches you all: "The Definitive Guide to DAX" by Alberto Ferrari and Marco Russo. Read it and you'll know DAX. Then practise it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your question it's not clear whether you're asking for a measure or a calculated column.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 13:08:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968467#M43175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-20T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968478#M43176</link>
      <description>&lt;P&gt;I'm looking for a measure, as a column wouldn't make sense.&lt;/P&gt;&lt;P&gt;I have a book, and am reading it cover to cover while practicing but I am having a hard time catching on.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 13:11:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968478#M43176</guid>
      <dc:creator>afaherty</dc:creator>
      <dc:date>2021-07-20T13:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968547#M43179</link>
      <description>&lt;P&gt;&lt;EM&gt;"I am trying to insert a measure to calculate the % that answered with each possible response, for each question."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is your own words. If you try to &lt;STRONG&gt;INSERT&lt;/STRONG&gt; a measure (into a table which you show) it means you really want a calculated column. And a calculated column can be created with such a definition, so it's not true it does not make sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But here's a measure, or rather a family of measures that depend on X.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// You have to substitute
// the right piece of code
// for X in the code below.

// T is your table
[Total Answers] = COUNTROWS( T )

[# Who Answered With X] = // measure
var AnswerCode = X
var Result =
	CALCULATE(
		[Total Answers], 
		KEEPFILTERS( T[Response] = AnswerCode )
	)
return
	Result
	
[% Who Answered With X] =
DIVIDE(
	[# Who Answered With X],
	[Total Answers]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 14:03:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968547#M43179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-20T14:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968760#M43190</link>
      <description>&lt;P&gt;I was hopeful about that last one on your list, but here's what happened once I applied it.&amp;nbsp; it's taking the % of people who answered from the entire dataset, not by survey question.&amp;nbsp; Each row should have a total of 100%, not 25%.&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>Tue, 20 Jul 2021 16:01:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968760#M43190</guid>
      <dc:creator>afaherty</dc:creator>
      <dc:date>2021-07-20T16:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968792#M43193</link>
      <description>&lt;P&gt;I am brand new to this.&amp;nbsp; Can you be a little genlter with me?&lt;/P&gt;&lt;P&gt;With all due respect, I don't agree that an inserted column makes sense.&lt;/P&gt;&lt;P&gt;This is my desired end result.&amp;nbsp; Do I really have to ask it to calculate separately the % who answered Strongly Agree, then the % who answered Agree, etc?&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>Tue, 20 Jul 2021 16:22:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968792#M43193</guid>
      <dc:creator>afaherty</dc:creator>
      <dc:date>2021-07-20T16:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968794#M43194</link>
      <description>&lt;P&gt;This is my desired end result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 16:23:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968794#M43194</guid>
      <dc:creator>afaherty</dc:creator>
      <dc:date>2021-07-20T16:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968804#M43195</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// T is your table
[Total Answers] = COUNTROWS( T )
	
[% of Answers] =
DIVIDE(
	[Total Answers],
	CALCULATE(
		[Total Answers],
		// Response has to be the column
		// you place in the Columns well. Do
		// not use the raw codes. It'll stop
		// working then. Hide them as I don't
		// think anyone would like to see
		// them since they're meaningless
		// to the business user.
		ALLSELECTED( T[Response] )
	)
)&lt;/LI-CODE&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, 20 Jul 2021 16:38:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968804#M43195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-20T16:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968813#M43196</link>
      <description>&lt;P&gt;&lt;EM&gt;"With all due respect, I don't agree that an inserted column makes sense."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Whether or not something makes sense depends solely on its definition (and your understanding of it). &lt;/STRONG&gt;I sent you the right measure in the post preceding this one.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 16:37:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1968813#M43196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-20T16:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1970983#M43294</link>
      <description>&lt;P&gt;I discovered that&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;'s solution below DIVIDE(COUNTROWS(Sheet1),COUNTX(ALL(Sheet1),Sheet1[Response])) does work, I just have to set the result to "Show value as percent of row total" and then it's perfect.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 17:01:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1970983#M43294</guid>
      <dc:creator>afaherty</dc:creator>
      <dc:date>2021-07-21T17:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for survey results: % who answered "Strongly Agree" etc for each question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1971017#M43299</link>
      <description>&lt;LI-CODE lang="csharp"&gt;DIVIDE(
	COUNTROWS( T ),
	COUNTROWS( ALL( T ) )
)&lt;/LI-CODE&gt;&lt;P&gt;This is equivalent to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;'s formula but these formulas are absolute, not relative. It might be what you want but it might not be.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 16:55:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-survey-results-who-answered-quot-Strongly-Agree-quot-etc/m-p/1971017#M43299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-21T16:55:54Z</dc:date>
    </item>
  </channel>
</rss>

