<?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 with more than 1 filter in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Matrix-with-more-than-1-filter/m-p/4373976#M59140</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That really helped! now I have a different issue and is that i need to add a variance column that deduct one column (measure) from another (measure). my rows are 50 measures calculated and is howing all columns but it runs out of memry when i add 1 variance column. Might you know a different approach for this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 15:31:18 GMT</pubDate>
    <dc:creator>ggmm17</dc:creator>
    <dc:date>2025-01-21T15:31:18Z</dc:date>
    <item>
      <title>Matrix with more than 1 filter</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Matrix-with-more-than-1-filter/m-p/4372455#M59129</link>
      <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how do you build a matrix that has a set of columns from P1 to P12 and the. Other columns that look at selected period by user but for other scenario selected x2?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;is there a way to a simple way to build this that is not having a calculated measure for each column?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 22:00:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Matrix-with-more-than-1-filter/m-p/4372455#M59129</guid>
      <dc:creator>ggmm17</dc:creator>
      <dc:date>2025-01-20T22:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix with more than 1 filter</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Matrix-with-more-than-1-filter/m-p/4373153#M59132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/908960"&gt;@ggmm17&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean that there are 12 legend types P1-P12 and you want to add other measures, then the columns will expand based on measures? If yes, I could reporduce your issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_1-1737445299597.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1228779i7593BD5D2AA5F038/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_1-1737445299597.png" alt="vrzhoumsft_1-1737445299597.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think you want the result P1-P12 + Measures in same levels instead of show hierarchy levels.&lt;/P&gt;
&lt;P&gt;I suggest you to create a new Legend type table for matrix columns fields. In my sample it looks like as below.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DimLegend = 
DATATABLE(
    "Legend",STRING,
    "Order",INTEGER,
    {
        {"P1","1"},
        {"P2","2"},
        {"P3","3"},
        {"Meausre1","4"},
        {"Measure2","5"}
    }
)&lt;/LI-CODE&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CombineMeasure = 
CombineMeasure =
IF (
    MAX ( DimLegend[Order] ) IN { 1, 2, 3 },
    [Measure for P1-P12],
    SWITCH ( MAX ( DimLegend[Order] ), 4, [Measure], 5, [Measure 2] )
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_2-1737446120357.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1228786i0093F922077FD1CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_2-1737446120357.png" alt="vrzhoumsft_2-1737446120357.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;
&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 07:55:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Matrix-with-more-than-1-filter/m-p/4373153#M59132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-21T07:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix with more than 1 filter</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Matrix-with-more-than-1-filter/m-p/4373976#M59140</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That really helped! now I have a different issue and is that i need to add a variance column that deduct one column (measure) from another (measure). my rows are 50 measures calculated and is howing all columns but it runs out of memry when i add 1 variance column. Might you know a different approach for this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 15:31:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Matrix-with-more-than-1-filter/m-p/4373976#M59140</guid>
      <dc:creator>ggmm17</dc:creator>
      <dc:date>2025-01-21T15:31:18Z</dc:date>
    </item>
  </channel>
</rss>

