<?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: Simple DAX Query Question in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458736#M131877</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="573256" data-lia-user-login="Josh0112" class="lia-mention lia-mention-user"&gt;Josh0112&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;make new table and use below code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;new table =&lt;/SPAN&gt; &lt;SPAN&gt;SUMMARIZECOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;yourtable&lt;/SPAN&gt;&lt;SPAN&gt;[theme]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"s"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AVERAGE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;yourtable&lt;/SPAN&gt;&lt;SPAN&gt;[nps]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;yourtable&lt;/SPAN&gt;&lt;SPAN&gt;[theme]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;yourtable&lt;/SPAN&gt;&lt;SPAN&gt;[theme]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;here s =&amp;nbsp;&lt;STRONG&gt;Average of NPS when theme not included&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 05:16:03 GMT</pubDate>
    <dc:creator>Dangar332</dc:creator>
    <dc:date>2023-10-04T05:16:03Z</dc:date>
    <item>
      <title>Simple DAX Query Question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458547#M131865</link>
      <description>&lt;P&gt;I'm trying to create the following measure. I have two columns, one is a score and one is a text response. Like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NPS &amp;nbsp; &amp;nbsp; Theme&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;100 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;good&lt;/P&gt;&lt;P&gt;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;good&lt;/P&gt;&lt;P&gt;-100 &amp;nbsp; &amp;nbsp; &amp;nbsp; bad&lt;/P&gt;&lt;P&gt;100 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;other&lt;/P&gt;&lt;P&gt;100 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bad&lt;/P&gt;&lt;P&gt;100 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to create a table that can show what the average of the NPS column would be if we didn't include each of the specific text themes. Something like below. Example for good theme would be (-100+100+100+100)/4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Theme &amp;nbsp; Average of NPS when theme not included&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;good &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50 &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bad &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&lt;/P&gt;&lt;P&gt;other &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40&lt;/P&gt;&lt;P&gt;fun &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just not sure where to start with this one. Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 00:49:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458547#M131865</guid>
      <dc:creator>Josh0112</dc:creator>
      <dc:date>2023-10-04T00:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Simple DAX Query Question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458675#M131869</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="573256" data-lia-user-login="Josh0112" class="lia-mention lia-mention-user"&gt;Josh0112&lt;/a&gt;&amp;nbsp;, Explain the issue properly.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 03:29:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458675#M131869</guid>
      <dc:creator>ChiragGarg2512</dc:creator>
      <dc:date>2023-10-04T03:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Simple DAX Query Question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458722#M131873</link>
      <description>&lt;P&gt;Can you let me know what additional information i could include to sufficiently explain?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short i'm trying to create a measure which is AVERAGE(NPS) but to somehow use the discrete text combinations in theme column (good, bad, other, fun) as an exclusion filter. Each row has a unique id assigned to it so can be treated as a single response in a survey. E.g. first person gave a score of '100' and a theme of 'good' , second person gave a score of '0' and a theme of 'good' etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when i drop this in to a table against the theme 'good' in the theme column i want it to show the average of NPS for all themes combined except for the nps scores associated to the responses that answered 'good'. In the example i provided this would mean that the average of all NPS scores excluding the ones with text response 'good' = -100 (bad) + 100 (other) + 100 (bad) + 100 (fun) / 4 = 50&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 04:20:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458722#M131873</guid>
      <dc:creator>Josh0112</dc:creator>
      <dc:date>2023-10-04T04:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Simple DAX Query Question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458724#M131874</link>
      <description>&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;This DAX measure worked for me:&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Average of NPS when theme not included =
var themeNotIncluded = FILTER(ALL('Table'), 'Table'[Theme] &amp;lt;&amp;gt; SELECTEDVALUE('Table'[Theme]))
return AVERAGEX(themeNotIncluded, 'Table'[NPS])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 04:27:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458724#M131874</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2023-10-04T04:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Simple DAX Query Question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458736#M131877</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="573256" data-lia-user-login="Josh0112" class="lia-mention lia-mention-user"&gt;Josh0112&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;make new table and use below code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;new table =&lt;/SPAN&gt; &lt;SPAN&gt;SUMMARIZECOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;yourtable&lt;/SPAN&gt;&lt;SPAN&gt;[theme]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"s"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AVERAGE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;yourtable&lt;/SPAN&gt;&lt;SPAN&gt;[nps]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;yourtable&lt;/SPAN&gt;&lt;SPAN&gt;[theme]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;yourtable&lt;/SPAN&gt;&lt;SPAN&gt;[theme]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;here s =&amp;nbsp;&lt;STRONG&gt;Average of NPS when theme not included&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 05:16:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458736#M131877</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-04T05:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple DAX Query Question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458754#M131879</link>
      <description>&lt;P&gt;Thanks, this seemed to do the trick.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 05:17:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3458754#M131879</guid>
      <dc:creator>Josh0112</dc:creator>
      <dc:date>2023-10-04T05:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Simple DAX Query Question</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3462637#M132094</link>
      <description>&lt;P&gt;Nice! Glad to help&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 21:34:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Simple-DAX-Query-Question/m-p/3462637#M132094</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2023-10-05T21:34:39Z</dc:date>
    </item>
  </channel>
</rss>

