<?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: Calculated Measure showing on all rows of table in report in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Measure-showing-on-all-rows-of-table-in-report/m-p/680622#M327770</link>
    <description>&lt;P&gt;Thanks a lot Qiuyun!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is indeed working and giving me the outcome that I was expecting.&lt;/P&gt;&lt;P&gt;Understand what you are saying and will follow your advice for setting up these measures!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Siem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 08:00:37 GMT</pubDate>
    <dc:creator>siemdevlieger</dc:creator>
    <dc:date>2019-04-30T08:00:37Z</dc:date>
    <item>
      <title>Calculated Measure showing on all rows of table in report</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Measure-showing-on-all-rows-of-table-in-report/m-p/680120#M327683</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have not so much an issue, but something I am trying to understand, as it might have an impact on areas that I am not aware off.&lt;/P&gt;&lt;P&gt;I have one table with sales by scenario (actual, budget, projection) which is joined to a dimension table containing all possible scenario’s (many to one relationship). Below is just dummy data, but the same is happening for my full dataset.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Transaction table:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P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gt;Actual&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Budget&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Target&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Projection&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Forecast&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Calculated Measure:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales = &lt;/STRONG&gt;calculate(sum(Transaction table'[Value]))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales Actual &lt;/STRONG&gt;= calculate(sum(Transaction table'[Value]),DIM_SCENARIO[Scenario] = "Actual")&lt;/P&gt;&lt;P&gt;When I now pull these measures in a table together with the ‘Scenario’ from the DIM_SCENARIO table it looks like the below picture. It shows all scenarios, but also shows ‘Sales Actual’ for each scenario. Why does it show the value for all scenario’s and not only for the ‘Actual’ scenario? I would expect it to show zero or null for the other scenario’s as that is what the measure is filtered on. The total of the table is however showing the correct value, but it looks confusing.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain in easy language why it’s showing this way? Should I use a different formula for my measure?&lt;/P&gt;&lt;P&gt;I could not find something online describing exactly the same as this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 16:04:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Measure-showing-on-all-rows-of-table-in-report/m-p/680120#M327683</guid>
      <dc:creator>siemdevlieger</dc:creator>
      <dc:date>2019-04-29T16:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Measure showing on all rows of table in report</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Measure-showing-on-all-rows-of-table-in-report/m-p/680488#M327685</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="64765" data-lia-user-login="siemdevlieger" class="lia-mention lia-mention-user"&gt;siemdevlieger&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you set the filter condition&amp;nbsp;&lt;SPAN&gt;DIM_SCENARIO[Scenario] = "Actual" in the measure Sales Actual, the measure will calculate rows which related Scenario is Actual. To achieve your requirement, you can modify the measure below:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Sales Actual = IF(MAX('DIM_SCENARIO'[Scenario])="Actual",calculate(sum('Transaction table'[Value]),DIM_SCENARIO[Scenario] = "Actual"),BLANK())&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Qiuyun Yu&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 05:59:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Measure-showing-on-all-rows-of-table-in-report/m-p/680488#M327685</guid>
      <dc:creator>v-qiuyu-msft</dc:creator>
      <dc:date>2019-04-30T05:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Measure showing on all rows of table in report</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Measure-showing-on-all-rows-of-table-in-report/m-p/680622#M327770</link>
      <description>&lt;P&gt;Thanks a lot Qiuyun!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is indeed working and giving me the outcome that I was expecting.&lt;/P&gt;&lt;P&gt;Understand what you are saying and will follow your advice for setting up these measures!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Siem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 08:00:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculated-Measure-showing-on-all-rows-of-table-in-report/m-p/680622#M327770</guid>
      <dc:creator>siemdevlieger</dc:creator>
      <dc:date>2019-04-30T08:00:37Z</dc:date>
    </item>
  </channel>
</rss>

