<?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: TREATAS doesn't show all data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1517330#M29553</link>
    <description>&lt;P&gt;Combinations under TREATAS (the first argument) that do not exist in the target table to which you apply them&amp;nbsp;(the other arguments) will, of course, not appear in the output. So, if there's a combination in Sales that does not exist in 'plan', it'll not show up. It just can't show up since TREATAS creates a set of rows that DO EXIST in the target table.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 21:42:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T21:42:30Z</dc:date>
    <item>
      <title>TREATAS doesn't show all data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1516893#M29541</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to create virtual relationship between tables: 'Sales' and 'Plan', but TREATAS function doesn't work.&lt;BR /&gt;When any of the position from 'Plan' does not exist in 'Sales' it works incorrectly . Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;Plan =&lt;/P&gt;&lt;P&gt;CALCULATE (&lt;/P&gt;&lt;P&gt;SUM ( Plan[Value] ),&lt;/P&gt;&lt;P&gt;TREATAS (&lt;/P&gt;&lt;P&gt;SUMMARIZE ( 'Sales', 'Sales'[Year], 'Sales'[Month],'Sales'[Type],'Sale'[Region]),&lt;/P&gt;&lt;P&gt;plan[Year],plan[Month],plan[Type],plan[Region]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.ibb.co/M8Lfqpx/1.png" target="_blank" rel="noopener"&gt;https://i.ibb.co/M8Lfqpx/1.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power BI shows:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.ibb.co/YXSGVZK/3.png" target="_blank" rel="noopener"&gt;https://i.ibb.co/YXSGVZK/3.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.ibb.co/NL4QqbT/3.png" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://i.ibb.co/NL4QqbT/3.png&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:46:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1516893#M29541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: TREATAS doesn't show all data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1517072#M29544</link>
      <description>&lt;P&gt;Here is your measure a bit more readable so I can understand what is going on:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Plan =
CALCULATE(
    SUM( Plan[Value] ),
    TREATAS(
        SUMMARIZE(
            'Sales',
            'Sales'[Year],
            'Sales'[Month],
            'Sales'[Type],
            'Sale'[Region]
        ),
        plan[Year],
        plan[Month],
        plan[Type],
        plan[Region]
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;The issue it seems is your Sales table doesn't have the 2020/2/2/B value to filter the plan table by, so it will not show up. There is nothing in sales to filter that.&lt;BR /&gt;&lt;BR /&gt;if you need more help, please provide some data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to get good help fast. Help us help you.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" rel="noopener" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt; - Give us a good and concise explanation&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" rel="noopener" target="_blank"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt; - Provide data in a table format per the link. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 17:47:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1517072#M29544</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2020-11-25T17:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: TREATAS doesn't show all data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1517330#M29553</link>
      <description>&lt;P&gt;Combinations under TREATAS (the first argument) that do not exist in the target table to which you apply them&amp;nbsp;(the other arguments) will, of course, not appear in the output. So, if there's a combination in Sales that does not exist in 'plan', it'll not show up. It just can't show up since TREATAS creates a set of rows that DO EXIST in the target table.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 21:42:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1517330#M29553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T21:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: TREATAS doesn't show all data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1517740#M29560</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;the better way is to create dimension tables for date, region,type. then put them in the row&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 03:49:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1517740#M29560</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-11-26T03:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: TREATAS doesn't show all data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1518240#M29563</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&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;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I want to be able to display the plan for a all combinations, even if combination is not available in 'Sale'. How can I do it?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Sometimes we have a plan for a product but it hasn't been sold yet. Still, I would like the see plan: 800, not 700.&lt;/P&gt;&lt;P&gt;Dimension tables are created, but still the same problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 08:30:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1518240#M29563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-26T08:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: TREATAS doesn't show all data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1521410#M29673</link>
      <description>&lt;P&gt;Can you post some actual data per links below? I am not typing that in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot use TREATAS here. The function works by saying "&lt;STRONG&gt;TREAT&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;this&amp;nbsp;&lt;/EM&gt;&lt;STRONG&gt;AS&lt;/STRONG&gt; a filter for&amp;nbsp;&lt;EM&gt;that.&lt;/EM&gt;" That is where TREATAS came from. If the data doesn't exist in&amp;nbsp;&lt;EM&gt;this&lt;/EM&gt; then it has nothing to filter for&amp;nbsp;&lt;EM&gt;that.&lt;/EM&gt; I'd be inclinced to merge or combine data in Power Query - would have to play with it. But need data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to get good help fast. Help us help you.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt; - Give us a good and concise explanation&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt; - Provide data in a table format per the link. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 19:39:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1521410#M29673</guid>
      <dc:creator>edhans</dc:creator>
      <dc:date>2020-11-27T19:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: TREATAS doesn't show all data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1521500#M29683</link>
      <description>&lt;P&gt;To get what you want, you can't use columns from your fact tables. You ALWAYS have to use proper dimensions to slice data by. The hard rule is that data should never be sliced and diced by columns in fact tables. Only via dimensions. Stick to this and you'll be safe.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 21:22:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TREATAS-doesn-t-show-all-data/m-p/1521500#M29683</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2020-11-27T21:22:14Z</dc:date>
    </item>
  </channel>
</rss>

