<?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: Grouping column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460349#M66569</link>
    <description>&lt;P&gt;It's very good solution, but, what if instead of sum, I need average, when I just put averagex, it works wrongly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Apr 2022 18:00:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-17T18:00:09Z</dc:date>
    <item>
      <title>Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460287#M66558</link>
      <description>&lt;P&gt;Hi! I need to create a formula, when I will use an existing table but with grouping, how can I do it?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 16:02:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460287#M66558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-17T16:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460313#M66560</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is a very general question. Would you please provide more details about your data structure and the expected results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 16:45:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460313#M66560</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-17T16:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460320#M66561</link>
      <description>&lt;P&gt;Remember, couple days ago I asked about this:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Creating-a-column-count-by-different-values-from-another-column/m-p/2459102#M66463" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Creating-a-column-count-by-different-values-from-another-column/m-p/2459102#M66463&lt;/A&gt;&lt;BR /&gt;So, as example, now I created a column "score":&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;person_id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;question&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;score&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;(first question)&lt;/TD&gt;&lt;TD&gt;0.21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;(first question)&lt;/TD&gt;&lt;TD&gt;0.21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;(first question)&lt;/TD&gt;&lt;TD&gt;0.21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;(second question)&lt;/TD&gt;&lt;TD&gt;0.83&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;(second question)&lt;/TD&gt;&lt;TD&gt;0.83&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;(second question)&lt;/TD&gt;&lt;TD&gt;0.83&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;(first question)&lt;/TD&gt;&lt;TD&gt;0.35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;(first question)&lt;/TD&gt;&lt;TD&gt;0.35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;(firstquestion)&lt;/TD&gt;&lt;TD&gt;0.35&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, now I need to make a formula, that will sum up the score, per question, but, as I used&amp;nbsp;&lt;SPAN&gt;COUNTROWS ( CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[Column1] ) ) ) to show the score, it shows the same one score per each person, but I don't need sum all 6 score per first question, I want to sum&amp;nbsp;0.21 + 0.35. Hope you got the problem, if not, I'll try to explain in a diff way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 16:58:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460320#M66561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-17T16:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460328#M66563</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Cognitive ease = &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;table&lt;/SPAN&gt;&lt;SPAN&gt; , table&lt;/SPAN&gt;&lt;SPAN&gt;[question]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"first_question"&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;table[score]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;That is my formula, I need to some how add grouping that I need&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 17:05:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460328#M66563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-17T17:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460330#M66564</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By group you mean same question same score? How many groups there are for each question? Are trying to sum the distinct values of scores of the question groups?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 17:08:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460330#M66564</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-17T17:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460331#M66565</link>
      <description>&lt;P&gt;Yes, I don't need to sum 3 times 0.21, it will be 0.63, but I need only 0.21. This score is question score, not persons, but it is shown per person, that's the problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 17:13:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460331#M66565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-17T17:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460332#M66566</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Total Scores =
SUMX (
    DISTINCT (
        SELECTCOLUMNS (
            CALCULATETABLE ( Table, ALLEXCEPT ( Table, Table[question] ) ),
            "@question", [question],
            "@score", [score]
        )
    ),
    [@score]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 17 Apr 2022 17:16:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460332#M66566</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-17T17:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460335#M66567</link>
      <description>&lt;P&gt;It works for now, I need to do it couple times for some cases, but thanks a lot!!!&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 17:25:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460335#M66567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-17T17:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460349#M66569</link>
      <description>&lt;P&gt;It's very good solution, but, what if instead of sum, I need average, when I just put averagex, it works wrongly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 18:00:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460349#M66569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-17T18:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460350#M66570</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes exactly&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 18:07:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460350#M66570</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-17T18:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460352#M66571</link>
      <description>&lt;P&gt;but it doesn't work, when I just put averagex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 18:12:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460352#M66571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-17T18:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460354#M66572</link>
      <description>&lt;P&gt;Can you explain further with example? Also please confirm you are creating a calculated column not a measure&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 18:21:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460354#M66572</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-17T18:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460355#M66573</link>
      <description>&lt;P&gt;I'm creating a measure, sorry that I haven't mentioned. For sum it worked, for average not&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 18:23:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460355#M66573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-17T18:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460356#M66574</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;I don't know how your visual look like but you may try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Average Scores =
AVERAGEX (
    DISTINCT (
        SELECTCOLUMNS (
            CALCULATETABLE ( ALL ( Table ), ALLEXCEPT ( Table, Table[question] ) ),
            "@question", [question],
            "@score", [score]
        )
    ),
    [@score]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 18:29:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460356#M66574</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-17T18:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460360#M66575</link>
      <description>&lt;P&gt;ALL() takes a column, not a table&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 18:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460360#M66575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-17T18:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460361#M66576</link>
      <description>&lt;P&gt;It take either. But please re- copy the code as the location of all was wrong&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 18:36:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column/m-p/2460361#M66576</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-17T18:36:50Z</dc:date>
    </item>
  </channel>
</rss>

