<?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 Create Measure without altering context in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3975654#M154157</link>
    <description>&lt;P&gt;I have a table - &lt;STRONG&gt;TABA&amp;nbsp;&lt;/STRONG&gt; which has a &lt;STRONG&gt;PERSON_ID&lt;/STRONG&gt;, few other columns,&amp;nbsp;&lt;STRONG&gt;INDICATOR&lt;/STRONG&gt; column that has 2 values - YES and NO and an &lt;STRONG&gt;AMOUNT&lt;/STRONG&gt; column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table visual with PERSON_ID, all othercolumns and adding AMOUNT_MEASURE finally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AMOUNT_MEASURE = CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'TABA'&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;'TABA'&lt;/SPAN&gt;&lt;SPAN&gt;[Indicator]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"YES"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now some &lt;STRONG&gt;PERSON_ID&lt;/STRONG&gt;s don't have rows where &lt;STRONG&gt;INDICATOR = "YES"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I want to display AMOUNT_MEASURE and if there are no rows for a person where&amp;nbsp;&lt;STRONG&gt;INDICATOR = "YES"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;then I want to display &lt;STRONG&gt;ZERO&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;EDIT: I understood the problem. The AMOUNT_MEASURE filters the table to only rows that have "YES" and there are None in some cases, so the entire row in the table visualisation disappears.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I calculate AMOUNT_MEASURE if ther exist at least one row with with&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;INDICATOR = "YES"&amp;nbsp;&lt;/STRONG&gt; else show ZERO&amp;nbsp; without affecting other columns in the table i.e. without affecting grain of the table?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 06 Jun 2024 08:00:17 GMT</pubDate>
    <dc:creator>Hoping</dc:creator>
    <dc:date>2024-06-06T08:00:17Z</dc:date>
    <item>
      <title>Create Measure without altering context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3975654#M154157</link>
      <description>&lt;P&gt;I have a table - &lt;STRONG&gt;TABA&amp;nbsp;&lt;/STRONG&gt; which has a &lt;STRONG&gt;PERSON_ID&lt;/STRONG&gt;, few other columns,&amp;nbsp;&lt;STRONG&gt;INDICATOR&lt;/STRONG&gt; column that has 2 values - YES and NO and an &lt;STRONG&gt;AMOUNT&lt;/STRONG&gt; column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table visual with PERSON_ID, all othercolumns and adding AMOUNT_MEASURE finally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AMOUNT_MEASURE = CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'TABA'&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;'TABA'&lt;/SPAN&gt;&lt;SPAN&gt;[Indicator]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"YES"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now some &lt;STRONG&gt;PERSON_ID&lt;/STRONG&gt;s don't have rows where &lt;STRONG&gt;INDICATOR = "YES"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I want to display AMOUNT_MEASURE and if there are no rows for a person where&amp;nbsp;&lt;STRONG&gt;INDICATOR = "YES"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;then I want to display &lt;STRONG&gt;ZERO&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;EDIT: I understood the problem. The AMOUNT_MEASURE filters the table to only rows that have "YES" and there are None in some cases, so the entire row in the table visualisation disappears.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I calculate AMOUNT_MEASURE if ther exist at least one row with with&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;INDICATOR = "YES"&amp;nbsp;&lt;/STRONG&gt; else show ZERO&amp;nbsp; without affecting other columns in the table i.e. without affecting grain of the table?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jun 2024 08:00:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3975654#M154157</guid>
      <dc:creator>Hoping</dc:creator>
      <dc:date>2024-06-06T08:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure without altering context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3978186#M154247</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="580655" data-lia-user-login="Hoping" class="lia-mention lia-mention-user"&gt;Hoping&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you mean these records not real include in your table, you may need to create a new table with all combinations of two categories. Then you can compare them with 'YES' records count to get blank/missed records amounts.&lt;/P&gt;
&lt;P&gt;In addition, Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 01:02:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3978186#M154247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-07T01:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure without altering context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3979958#M154306</link>
      <description>&lt;P&gt;Try adding "+ 0" to your measure.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 13:10:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3979958#M154306</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-06-07T13:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure without altering context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3985439#M154511</link>
      <description>&lt;P&gt;This didn't work.&amp;nbsp; The measure never returns.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 08:34:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3985439#M154511</guid>
      <dc:creator>Hoping</dc:creator>
      <dc:date>2024-06-11T08:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create Measure without altering context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3985743#M154517</link>
      <description>&lt;P&gt;If the measure doesn't return a value, even with the&amp;nbsp; "+ 0" it means that&amp;nbsp;&lt;SPAN&gt;Xiaoxin Sheng is right and you need additional (dimension) tables to force evaluation for every combination.&lt;BR /&gt;Note that I wouldn't necessarily add one table with each combination, but more likely dimension tables for PERSON, INDICATOR and CATEGORY.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 10:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Measure-without-altering-context/m-p/3985743#M154517</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-06-11T10:03:32Z</dc:date>
    </item>
  </channel>
</rss>

