<?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: How to override the row level context. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725648#M83301</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;Could you please describe how the two tables look like?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 09:54:18 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-08-25T09:54:18Z</dc:date>
    <item>
      <title>How to override the row level context.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725300#M83276</link>
      <description>&lt;P&gt;I have two Heirarchies, unable to find the sum by category:&lt;/P&gt;&lt;P&gt;I have data something like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need the final table as below:&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, 25 Aug 2022 08:07:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725300#M83276</guid>
      <dc:creator>Chetna_Rath</dc:creator>
      <dc:date>2022-08-25T08:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to override the row level context.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725407#M83283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new table.&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;
&lt;LI-CODE lang="markup"&gt;New Table =
SUMMARIZE (
    ADDCOLUMNS (
        Data,
        "@Sum by Category",
            SUMX (
                FILTER ( Data, Data[Category] = EARLIER ( Data[Category] ) ),
                Data[Sales]
            )
    ),
    Data[Sub Category],
    Data[Sales],
    [@Sum by Category]
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Aug 2022 08:40:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725407#M83283</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-25T08:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to override the row level context.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725492#M83295</link>
      <description>&lt;P&gt;Hey. Thanks for the solution, but what if the sales column is in a different table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 09:13:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725492#M83295</guid>
      <dc:creator>Chetna_Rath</dc:creator>
      <dc:date>2022-08-25T09:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to override the row level context.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725648#M83301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;Could you please describe how the two tables look like?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 09:54:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725648#M83301</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-25T09:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to override the row level context.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725682#M83305</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we had a dimension table - Product&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And another fact table containing other KPIs like sales.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 10:02:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2725682#M83305</guid>
      <dc:creator>Chetna_Rath</dc:creator>
      <dc:date>2022-08-25T10:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to override the row level context.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2726910#M83400</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new table.&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;
&lt;LI-CODE lang="markup"&gt;New table = 
SUMMARIZE (
    ADDCOLUMNS (
        'Product',
        "@Sales_Subcategory", SUMX ( RELATEDTABLE ( 'Fact' ), 'Fact'[Sales] ),
        "@Sales_Category",
            SUMX (
                CALCULATETABLE (
                    RELATEDTABLE ( 'Fact' ),
                    FILTER (
                        ALL ( 'Product' ),
                        'Product'[Category] = EARLIER ( 'Product'[Category] )
                    )
                ),
                'Fact'[Sales]
            )
    ),
    'Product'[Sub Category],
    [@Sales_Subcategory],
    [@Sales_Category]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Aug 2022 17:29:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-override-the-row-level-context/m-p/2726910#M83400</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-08-25T17:29:31Z</dc:date>
    </item>
  </channel>
</rss>

