<?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: COUNTROWS WITH MULTIPLE COLUMNS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485304#M68203</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp; Thanks for the reply. Yes left is my data table in power bi. I need the total no. of count for Team A, Team B and both category based on the Employees. I am just trying to create the measure so that i will show the result on my chart. Yes, right table is how my result wants to be..&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 08:48:24 GMT</pubDate>
    <dc:creator>Revathi_Kannan</dc:creator>
    <dc:date>2022-04-29T08:48:24Z</dc:date>
    <item>
      <title>COUNTROWS WITH MULTIPLE COLUMNS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485207#M68194</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for the solution for the past 2 weeks but i am unable to find the DAX functions which i can do it in excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer the below image.. I have 2 columns but my result has to be group based on Category.. I am not able to do it in DAX function. Kindly assist me.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 08:16:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485207#M68194</guid>
      <dc:creator>Revathi_Kannan</dc:creator>
      <dc:date>2022-04-29T08:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS WITH MULTIPLE COLUMNS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485284#M68201</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="384089" data-lia-user-login="Revathi_Kannan" class="lia-mention lia-mention-user"&gt;Revathi_Kannan&lt;/a&gt;&amp;nbsp;can you be more specific what you are showing and where do you need this result?&lt;BR /&gt;1. Is the left table a model table.&amp;nbsp;&lt;BR /&gt;2. Do you need the right table result as a calculated table? as a visual table?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 08:43:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485284#M68201</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-04-29T08:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS WITH MULTIPLE COLUMNS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485304#M68203</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp; Thanks for the reply. Yes left is my data table in power bi. I need the total no. of count for Team A, Team B and both category based on the Employees. I am just trying to create the measure so that i will show the result on my chart. Yes, right table is how my result wants to be..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 08:48:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485304#M68203</guid>
      <dc:creator>Revathi_Kannan</dc:creator>
      <dc:date>2022-04-29T08:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS WITH MULTIPLE COLUMNS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485312#M68204</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below DAX formula and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Table = 
ADDCOLUMNS (
    VALUES ( Data[Employee] ),
    "@CategorySummary",
        CALCULATE (
            IF (
                COUNTROWS ( VALUES ( Data[Category] ) ) = 2,
                "BothCategory",
                VALUES ( Data[Category] )
            )
        )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 Apr 2022 08:51:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485312#M68204</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-04-29T08:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS WITH MULTIPLE COLUMNS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485356#M68208</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp; Thank you so much for you reply.. It works in small data.. i have 85k records so i cannot create a table and paste the details manually for all 85k records. Please correct me if i am wrong.. also it is live data it needs to be refreshed automatically for SQL. So if i create the table for this measure, will it work on the Live records ?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 09:03:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485356#M68208</guid>
      <dc:creator>Revathi_Kannan</dc:creator>
      <dc:date>2022-04-29T09:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS WITH MULTIPLE COLUMNS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485594#M68223</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp; Thank you so much.. It really worked well.. Can you please let me know how to add one more column to the New table?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 10:49:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485594#M68223</guid>
      <dc:creator>Revathi_Kannan</dc:creator>
      <dc:date>2022-04-29T10:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS WITH MULTIPLE COLUMNS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485763#M68242</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp; I need to add specific text as "Team A" and "Team B" instead of 2. Please help me to modify it accordingly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 12:36:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485763#M68242</guid>
      <dc:creator>Revathi_Kannan</dc:creator>
      <dc:date>2022-04-29T12:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS WITH MULTIPLE COLUMNS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485946#M68259</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please try the below measure in order to create a new table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Table = 
ADDCOLUMNS (
    VALUES ( Data[Employee] ),
    "@CategorySummary",
        CALCULATE (
            IF (
                CONTAINSROW (
                    SUMMARIZE (
                        FILTER (
                            Data,
                            Data[Employee] = VAR currentemployee = Data[Employee] RETURN currentemployee
                        ),
                        Data[Category]
                    ),
                    "TeamA"
                )
                    &amp;amp;&amp;amp; CONTAINSROW (
                        SUMMARIZE (
                            FILTER (
                                Data,
                                Data[Employee] = VAR currentemployee = Data[Employee] RETURN currentemployee
                            ),
                            Data[Category]
                        ),
                        "TeamB"
                    ),
                "BothCategory",
                VALUES ( Data[Category] )
            )
        )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 Apr 2022 14:18:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2485946#M68259</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-04-29T14:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS WITH MULTIPLE COLUMNS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2486164#M68279</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;I am getting an error " A table of multiplied values was supplied where a single value was expected" Can you please share your pbix tested file with the recent dax method.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 16:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2486164#M68279</guid>
      <dc:creator>Revathi_Kannan</dc:creator>
      <dc:date>2022-04-29T16:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTROWS WITH MULTIPLE COLUMNS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2486711#M68308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the attached file.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 06:22:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/COUNTROWS-WITH-MULTIPLE-COLUMNS/m-p/2486711#M68308</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-04-30T06:22:14Z</dc:date>
    </item>
  </channel>
</rss>

