<?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: Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395579#M174516</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782835" data-lia-user-login="TamerOmki" class="lia-mention lia-mention-user"&gt;TamerOmki&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide sample data and expected output? That will help us provide you with the right solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Mengmeng Li&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2025 06:09:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-05T06:09:33Z</dc:date>
    <item>
      <title>Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4393695#M174422</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have raw data as below:&lt;BR /&gt;- table 1:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;user ID&lt;/LI&gt;&lt;LI&gt;month&lt;/LI&gt;&lt;LI&gt;stream code: (1,2,34)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;whereas, within this table each user ID might be repeated within the same month based on the stream code he used during the month.&lt;/P&gt;&lt;P&gt;- table 2:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Stream code&lt;/LI&gt;&lt;LI&gt;stream name&lt;/LI&gt;&lt;LI&gt;stream name1 (same as stream name)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm trying to use a matrix visual with Stream name in the rows and stream name1 in the columns and the value should be distinct count of users who use every two streams.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you please help with the measure?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 07:25:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4393695#M174422</guid>
      <dc:creator>TamerOmki</dc:creator>
      <dc:date>2025-02-04T07:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4394777#M174478</link>
      <description>&lt;P&gt;&lt;BR /&gt;Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question.&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 15:46:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4394777#M174478</guid>
      <dc:creator>speedramps</dc:creator>
      <dc:date>2025-02-04T15:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395001#M174493</link>
      <description>&lt;P&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782835" data-lia-user-login="TamerOmki" class="lia-mention lia-mention-user"&gt;TamerOmki&lt;/a&gt; ,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;You want to count distinct users who used each pair of stream names, using Stream Name (rows) and Stream Name1 (columns).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;Solution: DAX Measure for Distinct User Count:&lt;/FONT&gt;&lt;/H4&gt;
&lt;LI-CODE lang="markup"&gt;UserCount = 
CALCULATE(
    DISTINCTCOUNT('Table1'[User ID]),
    CROSSFILTER('Table1'[Stream Code], 'Table2'[Stream Code], BOTH)
)
&lt;/LI-CODE&gt;
&lt;H3&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;Steps to Implement:&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;Ensure relationships: Table1[Stream Code] → Table2[Stream Code] (Many-to-One).&lt;/FONT&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;Create Matrix Visual:&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;Rows: Table2[Stream Name]&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;Columns: Table2[Stream Name1]&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT style="--darkreader-inline-color: var(--darkreader-text-000000, #e8e6e3);" color="#000000" data-darkreader-inline-color=""&gt;Values: UserCount (above measure)&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="mb-2 flex gap-3 empty:hidden -ml-2"&gt;
&lt;DIV class="items-center justify-start rounded-xl p-1 flex"&gt;
&lt;DIV class="flex items-center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Jul 2025 15:25:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395001#M174493</guid>
      <dc:creator>rohit1991</dc:creator>
      <dc:date>2025-07-08T15:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395579#M174516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782835" data-lia-user-login="TamerOmki" class="lia-mention lia-mention-user"&gt;TamerOmki&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide sample data and expected output? That will help us provide you with the right solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Mengmeng Li&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 06:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395579#M174516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-05T06:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395943#M174527</link>
      <description>&lt;P&gt;Thank you, within below link you will find the data:&lt;BR /&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1sqeFj_VjTEtFli9hranSLtn9c0CQ2HeE-3QoURlu_UU/edit?usp=sharing" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1sqeFj_VjTEtFli9hranSLtn9c0CQ2HeE-3QoURlu_UU/edit?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 08:37:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395943#M174527</guid>
      <dc:creator>TamerOmki</dc:creator>
      <dc:date>2025-02-05T08:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395945#M174528</link>
      <description>&lt;P&gt;Thank you, within below link you will find the data:&lt;BR /&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1sqeFj_VjTEtFli9hranSLtn9c0CQ2HeE-3QoURlu_UU/edit?usp=sharing" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1sqeFj_VjTEtFli9hranSLtn9c0CQ2HeE-3QoURlu_UU/edit?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 08:38:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395945#M174528</guid>
      <dc:creator>TamerOmki</dc:creator>
      <dc:date>2025-02-05T08:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395949#M174529</link>
      <description>&lt;P&gt;Thank you, I tried this measure but the result was as attached pic&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 08:39:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix/m-p/4395949#M174529</guid>
      <dc:creator>TamerOmki</dc:creator>
      <dc:date>2025-02-05T08:39:25Z</dc:date>
    </item>
  </channel>
</rss>

