<?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: Counting Text Values Across Multiple Dynamic Columns by User in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3120572#M110650</link>
    <description>&lt;P&gt;Hi Tamerj1&lt;/P&gt;&lt;P&gt;The Data is in a single table, there is no DAX measure, we are only using the Matris Visual to display the training course values (Completed, Not Completed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindest Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2023 05:41:36 GMT</pubDate>
    <dc:creator>CalexUK</dc:creator>
    <dc:date>2023-03-09T05:41:36Z</dc:date>
    <item>
      <title>Counting Text Values Across Multiple Dynamic Columns by User</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3111485#M109931</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a Matrix Table as below, I want to count the total number of learning activitys then work out the completion percentage, for example here there are 7 learning outcomes in total and line 1 (User dp0m6gp) has completed 4 of these so I want to show this as a percentage and so on for each user ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a slicer that shows different training programmes that have more or less training outcomes therfore the number of learning outcomes increases or decreases for each programme.&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>Sat, 04 Mar 2023 09:55:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3111485#M109931</guid>
      <dc:creator>CalexUK</dc:creator>
      <dc:date>2023-03-04T09:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Text Values Across Multiple Dynamic Columns by User</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3111493#M109932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475138" data-lia-user-login="CalexUK" class="lia-mention lia-mention-user"&gt;CalexUK&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is everything is one source table? What is the dax measure code that is placed in the values of the matrix?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 10:13:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3111493#M109932</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-04T10:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Text Values Across Multiple Dynamic Columns by User</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3120203#M110624</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475138" data-lia-user-login="CalexUK" class="lia-mention lia-mention-user"&gt;CalexUK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 =
var _summarize =
SUMMARIZE(
    'Table',
    [User ID],
    "training programmes","completed %")
var _table=
SUMMARIZE(
    'Table','Table'[User ID],'Table'[training programmes])
return
UNION(
    _table,_summarize)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag_1 =
MAXX(
    FILTER(ALL('Table'),
    'Table'[User ID]=MAX('Table 2'[User ID])&amp;amp;&amp;amp;'Table'[training programmes]=MAX('Table 2'[training programmes])),[Measure])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Flag_2 =
IF(
    MAX('Table 2'[training programmes]) ="completed %",
    DIVIDE(
    COUNTX(
        FILTER(ALLSELECTED('Table 2'),'Table 2'[User ID]=MAX('Table 2'[User ID])&amp;amp;&amp;amp;
    [Flag_1]="Completed"),[User ID]),
    COUNTX(
        FILTER(ALLSELECTED('Table 2'),'Table 2'[User ID]=MAX('Table 2'[User ID])),[User ID])-1),
    [Flag_1])&lt;/LI-CODE&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 01:23:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3120203#M110624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-09T01:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Text Values Across Multiple Dynamic Columns by User</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3120572#M110650</link>
      <description>&lt;P&gt;Hi Tamerj1&lt;/P&gt;&lt;P&gt;The Data is in a single table, there is no DAX measure, we are only using the Matris Visual to display the training course values (Completed, Not Completed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindest Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 05:41:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3120572#M110650</guid>
      <dc:creator>CalexUK</dc:creator>
      <dc:date>2023-03-09T05:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Text Values Across Multiple Dynamic Columns by User</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3120746#M110659</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475138" data-lia-user-login="CalexUK" class="lia-mention lia-mention-user"&gt;CalexUK&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Should it be something like this?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Result = 
VAR CurrentStatus = VALUES ( 'Table'[Status] )
VAR PercentCompleted = 
    DIVIDE ( 
        COUNTROWS ( FILTER ( 'Table', 'Table'[Status] = "Completed" ) ),
        COUNTROWS ( 'Table' )
    )
RETURN
    IF ( 
        HASONEVALUE ( 'Table'[UserID] ) &amp;amp;&amp;amp; HASONEVALUE ( 'Table'[Programmes] ),
        CurrentStatus,
        PercentCompleted + 0
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 07:15:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3120746#M110659</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-09T07:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Text Values Across Multiple Dynamic Columns by User</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3125623#M111015</link>
      <description>&lt;P&gt;Thank you this worked perfect...&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 18:41:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3125623#M111015</guid>
      <dc:creator>CalexUK</dc:creator>
      <dc:date>2023-03-11T18:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Text Values Across Multiple Dynamic Columns by User</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3127882#M111182</link>
      <description>&lt;P&gt;Hi Tamerj!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solution worked great, is there a way to add a filter to this measure so that I can filter out whos is at say 100% for all items ? or 50% etc ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 12:05:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3127882#M111182</guid>
      <dc:creator>CalexUK</dc:creator>
      <dc:date>2023-03-13T12:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Text Values Across Multiple Dynamic Columns by User</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3129849#M111304</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475138" data-lia-user-login="CalexUK" class="lia-mention lia-mention-user"&gt;CalexUK&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Perhaps somthing like "&amp;lt; Parameter" makes sense?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 05:44:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-Text-Values-Across-Multiple-Dynamic-Columns-by-User/m-p/3129849#M111304</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T05:44:11Z</dc:date>
    </item>
  </channel>
</rss>

