<?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: measures into matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measures-into-matrix/m-p/3989251#M154629</link>
    <description>&lt;P&gt;sorry, mistake in the first sentence, "&lt;SPAN&gt;Hi team, I am traying to combine 2&amp;nbsp;measures"&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 16:54:18 GMT</pubDate>
    <dc:creator>eduardosilvin3</dc:creator>
    <dc:date>2024-06-12T16:54:18Z</dc:date>
    <item>
      <title>measures into matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measures-into-matrix/m-p/3989223#M154626</link>
      <description>&lt;P&gt;Hi team, I am traying to combine 2 matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rows 'Concept'[type]&lt;BR /&gt;columns 'DC'[Location_name]&lt;BR /&gt;values I have 2 measures with correct results,&lt;/P&gt;&lt;P&gt;TotalIndCostNoFilters A =&amp;nbsp;&lt;SPAN&gt;[TotalIndCostNoFilters per LB]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;* &lt;/SPAN&gt;&lt;SPAN&gt;[TotalRevenue% W]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TotalIndCostNoFilters B =&amp;nbsp;&lt;SPAN&gt;[TotalIndCostNoFilters per LB]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;* &lt;/SPAN&gt;&lt;SPAN&gt;[TotalRevenue% B]&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So, I need that the matrix shows&lt;/P&gt;&lt;P&gt;Concept[type] = "1) Whites" in my "New Matrix Column" shows "TotalIndCostNoFilters A" measure result&lt;/P&gt;&lt;P&gt;Concept[type] = "2) Browns" in my "New Matrix Column" shows "TotalIndCostNoFilters B" measure result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 16:40:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measures-into-matrix/m-p/3989223#M154626</guid>
      <dc:creator>eduardosilvin3</dc:creator>
      <dc:date>2024-06-12T16:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: measures into matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measures-into-matrix/m-p/3989251#M154629</link>
      <description>&lt;P&gt;sorry, mistake in the first sentence, "&lt;SPAN&gt;Hi team, I am traying to combine 2&amp;nbsp;measures"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 16:54:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measures-into-matrix/m-p/3989251#M154629</guid>
      <dc:creator>eduardosilvin3</dc:creator>
      <dc:date>2024-06-12T16:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: measures into matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measures-into-matrix/m-p/3989858#M154713</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650208" data-lia-user-login="eduardosilvin3" class="lia-mention lia-mention-user"&gt;eduardosilvin3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Based on your description, I created two measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
SUM(financials[Sales])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 =
SUM(financials[COGS])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Create measures to show different results.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 3 =
SWITCH(TRUE(),
MAX('financials'[Country]) = "Canada",'financials'[Measure],
MAX('financials'[Country]) = "France",'financials'[Measure 2])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you could try changing your expression to:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TotalIndCostNoFilters Conditional =
SWITCH(
TRUE(),
SELECTEDVALUE('Concept'[type]) = "1) Whites", [TotalIndCostNoFilters A],
SELECTEDVALUE('Concept'[type]) = "2) Browns", [TotalIndCostNoFilters B],
BLANK()
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 01:44:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/measures-into-matrix/m-p/3989858#M154713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-13T01:44:12Z</dc:date>
    </item>
  </channel>
</rss>

