<?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: Measure for matrix visual that rolls up values from child rows to parent rows. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-matrix-visual-that-rolls-up-values-from-child-rows/m-p/3287271#M122244</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="206728" data-lia-user-login="AndyB87" class="lia-mention lia-mention-user"&gt;AndyB87&lt;/a&gt;&amp;nbsp;try to use ALLEXCEPT for your column (I guess&amp;nbsp;&lt;SPAN&gt;[category],)&lt;/SPAN&gt; as shown in example&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/" target="_self"&gt;https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/&lt;/A&gt;&amp;nbsp; I hope this help&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 05:58:36 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2023-06-16T05:58:36Z</dc:date>
    <item>
      <title>Measure for matrix visual that rolls up values from child rows to parent rows.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-matrix-visual-that-rolls-up-values-from-child-rows/m-p/3286514#M122205</link>
      <description>&lt;P&gt;I'm trying to write a measure for a matrix visualization that will roll up a calculation of a percentage from child rows to parent rows.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have a data model with a fact table called 'retailSales' that contains transaction data and a dimension table called 'product' that contains product information. Our products are divided into a taxonomy of categories, so the product table has fields for [masterCategory], [category], and [subcategory]. I'm putting together an analysis of our product categories. I have a matrix where the rows drill down from master category to category to subcategory. I have a column that calculates dollar sales for each row. I'd like to write a measure that calculates each row's dollar sales value as a % of its parent row subtotal (and % of total sales for each master category). It should look like the following example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I have a measure that successfully calculates each row's % share of &lt;EM&gt;total&lt;/EM&gt; sales, but it doesn't roll up percentages from child rows to parent rows the way I want. It calculates a child row as a % of the total rather than its parent. It looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CategoryShare = 
DIVIDE(
    SUM( retailSales[soldPrice] ),
    CALCULATE(
        SUM( retailSales[soldPrice] ),
        ALLSELECTED( product )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on how to write a measure that does what I'm looking for?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 17:21:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-matrix-visual-that-rolls-up-values-from-child-rows/m-p/3286514#M122205</guid>
      <dc:creator>AndyB87</dc:creator>
      <dc:date>2023-06-15T17:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for matrix visual that rolls up values from child rows to parent rows.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-matrix-visual-that-rolls-up-values-from-child-rows/m-p/3287271#M122244</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="206728" data-lia-user-login="AndyB87" class="lia-mention lia-mention-user"&gt;AndyB87&lt;/a&gt;&amp;nbsp;try to use ALLEXCEPT for your column (I guess&amp;nbsp;&lt;SPAN&gt;[category],)&lt;/SPAN&gt; as shown in example&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/" target="_self"&gt;https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/&lt;/A&gt;&amp;nbsp; I hope this help&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 05:58:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-matrix-visual-that-rolls-up-values-from-child-rows/m-p/3287271#M122244</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-16T05:58:36Z</dc:date>
    </item>
  </channel>
</rss>

