<?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 or goup by, DAX, Query or SQL in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497248#M133994</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="635900" data-lia-user-login="EylesIT" class="lia-mention lia-mention-user"&gt;EylesIT&lt;/a&gt;&amp;nbsp;, I was able to get the data needed. It would have been weeks if ever for me to figure this out. There's another column I want to show as the rows and not the "User" but I'll work on that. Awesome answer.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2023 19:14:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-25T19:14:48Z</dc:date>
    <item>
      <title>Grouping or goup by, DAX, Query or SQL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497066#M133986</link>
      <description>&lt;P&gt;Thank you ahead of time. Below is a simplified table where I want to count how many EN users selected Chat.&lt;/P&gt;&lt;P&gt;I was trying to figure out how to group the information of the User and count if both EN and Chat were in the grouping but I don't have the knowledge how to do it.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;User&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Operation&lt;/TD&gt;&lt;TD&gt;Description&lt;/TD&gt;&lt;TD&gt;Selection&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;User1&lt;/TD&gt;&lt;TD&gt;Menu&lt;/TD&gt;&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Y&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 17:32:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497066#M133986</guid>
      <dc:creator>TodS9</dc:creator>
      <dc:date>2023-10-25T17:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping or goup by, DAX, Query or SQL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497131#M133987</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="636696" data-lia-user-login="TodS9" class="lia-mention lia-mention-user"&gt;TodS9&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Table1 = SELECTCOLUMNS( FILTER( 'Table', [Selection] = "EN" ), "User", [User])
  VAR __Table2 = SELECTCOLUMNS( FILTER( 'Table', [Selection] = "Chat" ), "User", [User])
  VAR __Result = COUNTROWS(INTERSECT( __Table1, __Table2 ) )
RETURN
  __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Oct 2023 18:13:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497131#M133987</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-10-25T18:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping or goup by, DAX, Query or SQL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497135#M133988</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="636696" data-lia-user-login="TodS9" class="lia-mention lia-mention-user"&gt;TodS9&lt;/a&gt;, here is my suggested solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a measure called [Has EN and Chat] with this DAX formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Has EN and Chat = 
    SUMX(
        VALUES(YourTable[User]),
        VAR hasEN = CALCULATE(DISTINCTCOUNT(YourTable[User]), YourTable[Selection] = "EN")
        VAR hasChat = CALCULATE(DISTINCTCOUNT(YourTable[User]),YourTable[Selection] = "Chat")
        RETURN IF(hasEN &amp;gt; 0 &amp;amp;&amp;amp; hasChat &amp;gt; 0, 1)
    )&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;&lt;P&gt;Add a table visual to your report and drag the [User] column and the [Has EN and Chat] mesaure. This gives the output below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 18:15:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497135#M133988</guid>
      <dc:creator>EylesIT</dc:creator>
      <dc:date>2023-10-25T18:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping or goup by, DAX, Query or SQL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497248#M133994</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="635900" data-lia-user-login="EylesIT" class="lia-mention lia-mention-user"&gt;EylesIT&lt;/a&gt;&amp;nbsp;, I was able to get the data needed. It would have been weeks if ever for me to figure this out. There's another column I want to show as the rows and not the "User" but I'll work on that. Awesome answer.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 19:14:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497248#M133994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-25T19:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping or goup by, DAX, Query or SQL</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497259#M133996</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;. This answer may allow me to get the information in the layout I eventually want. It's just going to take some extra time to learn and understand how it works. You guys are fantastic. I've been staring at this for a couple of weeks before breaking down and asking for help. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 19:19:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-or-goup-by-DAX-Query-or-SQL/m-p/3497259#M133996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-25T19:19:37Z</dc:date>
    </item>
  </channel>
</rss>

