<?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 Table Custom in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1880980#M40421</link>
    <description>&lt;P&gt;Use &lt;A href="https://dax.guide/isinscope/" target="_self"&gt;ISINSCOPE&lt;/A&gt;. So say your budget is on the Department level and you only want to see it in the total row:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=
IF(
    ISINSCOPE( TableName[Departments] ),
    BLANK(),
    Measure or Expression here
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the department is in the scope (it is visible on the row in the matrix), it will return blank. The department will not be in scope on a total row, so it will return the total.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jun 2021 00:09:53 GMT</pubDate>
    <dc:creator>edhans</dc:creator>
    <dc:date>2021-06-04T00:09:53Z</dc:date>
    <item>
      <title>Matrix Table Custom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1880973#M40420</link>
      <description>&lt;P&gt;Hello PowerBi Friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make a custom matrix table where I don't want to include the budget column in each month and view it on the total column only. Is there any way to do it like turning it on and off or something? Thanks everyone!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 23:55:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1880973#M40420</guid>
      <dc:creator>rbalza</dc:creator>
      <dc:date>2021-06-03T23:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Table Custom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1880980#M40421</link>
      <description>&lt;P&gt;Use &lt;A href="https://dax.guide/isinscope/" target="_self"&gt;ISINSCOPE&lt;/A&gt;. So say your budget is on the Department level and you only want to see it in the total row:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=
IF(
    ISINSCOPE( TableName[Departments] ),
    BLANK(),
    Measure or Expression here
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the department is in the scope (it is visible on the row in the matrix), it will return blank. The department will not be in scope on a total row, so it will return the total.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 00:09:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1880980#M40421</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-06-04T00:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Table Custom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1880990#M40423</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24715" data-lia-user-login="edhans" class="lia-mention lia-mention-user"&gt;edhans&lt;/a&gt;., thanks for your help. I actually use two Dax measures and not sure how to incorporate them with what you have suggested. See below the structure and Dax measures that I have used.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Actual =
CALCULATE (
    SUM ( 'Invoices'[Line Amount Calculation] ),
    FILTER (
        'Accounts',
        Accounts[Class] = "Revenue"
            || Accounts[Class] = "Expense"
    )
) - [P&amp;amp;L - Credit Notes] + [P&amp;amp;L (Journals)]&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Budget =
VAR DaysinContext =
    COUNTROWS ( Dates )
VAR DaysinMonth =
    CALCULATE ( COUNTROWS ( Dates ), ALL ( Dates ), VALUES ( Dates[Month &amp;amp; Year] ) )
VAR CurrentMonth =
    SELECTEDVALUE ( Dates[Month Name] )
VAR MonthlyBudgetAmounts = [Total Full Budget]
RETURN
    IF (
        OR ( HASONEVALUE ( Dates[Date] ), HASONEVALUE ( Dates[Month Name] ) ),
        DIVIDE ( DaysinContext, DaysinMonth, 0 ) * MonthlyBudgetAmounts,
        [Total Full Budget]
    )&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 00:19:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1880990#M40423</guid>
      <dc:creator>rbalza</dc:creator>
      <dc:date>2021-06-04T00:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Table Custom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1880993#M40426</link>
      <description>&lt;P&gt;You just put your measure in mine as an expression. So for actual, it would be this I think - hard to know exactly as you are showing pieces of your visual, not the whole thing. I'd rather see the whole thing but you can blur the numbers.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Actual =
VAR varActual =
    CALCULATE(
        SUM( 'Invoices'[Line Amount Calculation] ),
        FILTER(
            'Accounts',
            Accounts[Class] = "Revenue"
                || Accounts[Class] = "Expense"
        )
    ) - [P&amp;amp;L - Credit Notes] + [P&amp;amp;L (Journals)]
RETURN
    IF(
        ISINSCOPE( TableName[Account Type] ),
        BLANK(),
        varActual
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Budget is a bit trickier because I don't know what is going on with your HASONEVALUE functions, but this should work - but it could be tweaked:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Budget =
VAR DaysinContext =
    COUNTROWS( Dates )
VAR DaysinMonth =
    CALCULATE(
        COUNTROWS( Dates ),
        ALL( Dates ),
        VALUES( Dates[Month &amp;amp; Year] )
    )
VAR CurrentMonth =
    SELECTEDVALUE( Dates[Month Name] )
VAR MonthlyBudgetAmounts = [Total Full Budget]
VAR varBudget =
    IF(
        OR(
            HASONEVALUE( Dates[Date] ),
            HASONEVALUE( Dates[Month Name] )
        ),
        DIVIDE(
            DaysinContext,
            DaysinMonth,
            0
        ) * MonthlyBudgetAmounts,
        [Total Full Budget]
    )
VAR Result =
    IF(
        ISINSCOPE( TableName[Account Type] ),
        BLANK(),
        varBudget
    )
RETURN
    Result
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To really troubleshoot need to see much more, and preferably a PBIX. But do you see how I am using it in those examples? You clearly have a good handle on the DAX here, it may just be ISINSCOPE is new to you. If you can use HASONEVALUE you should be able to adopt ISINSCOPE. It is usually an easier way to hide/show totals than the old HASONEVALUE and HASONEFILTER tricks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 00:46:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1880993#M40426</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-06-04T00:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Table Custom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1881005#M40427</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24715" data-lia-user-login="edhans" class="lia-mention lia-mention-user"&gt;edhans&lt;/a&gt;&amp;nbsp;, really appreciated your help on this, and yes, not familiar with the ISINSCOPE yet. Here's my matrix table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 01:05:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1881005#M40427</guid>
      <dc:creator>rbalza</dc:creator>
      <dc:date>2021-06-04T01:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Table Custom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1881017#M40428</link>
      <description>&lt;P&gt;Ok, try my Actual measure. You need to use the right table name. If it doesn't work swap out Account Type for Name.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 01:29:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1881017#M40428</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-06-04T01:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Table Custom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1881074#M40429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24715" data-lia-user-login="edhans" class="lia-mention lia-mention-user"&gt;edhans&lt;/a&gt;&amp;nbsp;it returns nothing. and..the budget still on the month columns. where it should be on the YTD column only&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 02:02:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1881074#M40429</guid>
      <dc:creator>rbalza</dc:creator>
      <dc:date>2021-06-04T02:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Table Custom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1881111#M40432</link>
      <description>&lt;P&gt;Sorry - I was trying to remove it from the rows, I see now you only want the budget to show up at the column level. I was going the wrong direction. Use my measure, but use ISINSCOPE(Date[YearMonth]) column. Whatever it is that is returning May 2021, June 2021.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't work, I'll need the PBIX file, which you can share with me via PM if it is confidential data if you are ok with that. Otherwise, I'm playing hit/miss here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 02:45:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1881111#M40432</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-06-04T02:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Table Custom</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1882721#M40474</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296207" data-lia-user-login="rbalza" class="lia-mention lia-mention-user"&gt;rbalza&lt;/a&gt;&amp;nbsp;- so it turns out you cannot do what you want. I opened PBID this morning. I can supress the values, but in a matrix, the column will still show up as blank, which isn't desirable.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;That is unfortunate. On a row, it would suppress the row value. The Matrix isn't as flexible as a Power Pivot table is in Excel.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AheFG2CwN3xniqNDpb2W_zl9BlA1xA?e=mGBeBW" target="_self"&gt;Here is my PBIX if you&lt;/A&gt; want to see how ISINSCOPE is used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 16:29:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Matrix-Table-Custom/m-p/1882721#M40474</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2021-06-04T16:29:27Z</dc:date>
    </item>
  </channel>
</rss>

