<?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 Need help with DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1149915#M17469</link>
    <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;I have two tables, &lt;EM&gt;SALES&lt;/EM&gt; and &lt;EM&gt;ITEMS&lt;/EM&gt;. I have also created a duplicate of &lt;EM&gt;ITEMS&lt;/EM&gt; table called &lt;EM&gt;'FILTERING ITEM'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the result table to look like :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DAX I'm using now is like&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Unique Orders =&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;EM&gt;VAR ItemCount = CALCULATETABLE(VALUES(Sales[ORDER_ID]))&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;EM&gt;VAR FilterItemCount = CALCULATETABLE(VALUES(Sales[ORDER_ID]), TREATAS(VALUES(Sales[ITEM_ID]), 'Filtering Item'[ITEM_ID]))&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;EM&gt;COUNTROWS(INTERSECT(ItemCount,FilterItemCount))&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me with this please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nikita&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2020 05:23:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-10T05:23:11Z</dc:date>
    <item>
      <title>Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1149915#M17469</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;I have two tables, &lt;EM&gt;SALES&lt;/EM&gt; and &lt;EM&gt;ITEMS&lt;/EM&gt;. I have also created a duplicate of &lt;EM&gt;ITEMS&lt;/EM&gt; table called &lt;EM&gt;'FILTERING ITEM'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the result table to look like :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DAX I'm using now is like&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;EM&gt;Unique Orders =&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;EM&gt;VAR ItemCount = CALCULATETABLE(VALUES(Sales[ORDER_ID]))&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;EM&gt;VAR FilterItemCount = CALCULATETABLE(VALUES(Sales[ORDER_ID]), TREATAS(VALUES(Sales[ITEM_ID]), 'Filtering Item'[ITEM_ID]))&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;EM&gt;COUNTROWS(INTERSECT(ItemCount,FilterItemCount))&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me with this please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nikita&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 05:23:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1149915#M17469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-10T05:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1149963#M17470</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cannot understand the logic of your output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you pls explain the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 05:54:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1149963#M17470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-10T05:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1150054#M17474</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am trying to implement market basket analysis. ITEMS table and FILTERING ITEM table are serving as my baskets here.&lt;/P&gt;&lt;P&gt;I want the count of orders who purchased respective items from both baskets in matrix.&lt;/P&gt;&lt;P&gt;I am getting the correct result when I use below DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;BothItemsPurchased = &lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;CALCULATE ( &lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;DISTINCTCOUNT( Sales[ORDER_ID] ),&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;CALCULATETABLE (&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;SUMMARIZE ( Sales,Sales[ORDER_ID] ), &lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;ALL ( Items ),&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;USERELATIONSHIP ( Sales[ITEM_ID], 'Filtering Item'[ITEM_ID] )&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 06:31:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1150054#M17474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-10T06:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1150069#M17476</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I guess you are trying to implement:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.daxpatterns.com/basket-analysis/" target="_blank" rel="noopener"&gt;https://www.daxpatterns.com/basket-analysis/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which in your case would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Orders with Both Products = 
CALCULATE (
    DISTINCTCOUNT (Sales[ORDER_ID] );
    CALCULATETABLE (
        SUMMARIZE ( Sales;Sales[ORDER_ID] );
        ALL ( Items );
        USERELATIONSHIP ( Sales[ITEM_ID]; 'Filtering Item'[ITEM_ID] )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please mind the data model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Result is as expected, as can be seen here:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Power BI file is available &lt;A href="https://1drv.ms/u/s!AvU6hhKLfmEcgdgUcSu7yFhPMhBedg?e=u4RfFX" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Hope it helps, if so, please mark as solution. Thums up for the effort is appreciated.&lt;/P&gt;&lt;P&gt;Kind regards, Steve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 06:41:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1150069#M17476</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-10T06:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1150144#M17478</link>
      <description>&lt;P&gt;In order to understand what is happening I broke down the calculation, we essentially see that the;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE (
    DISTINCTCOUNT (Sales[ORDER_ID] );&lt;/LI-CODE&gt;&lt;P&gt;In itself is counting the orders which remain after applying only the filter context set by the columns, the items table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calculated table itself is getting the orders with the 'filtered item' only, in this case the items in the rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this table later is used as a filter on the first count (of orders filtered by the column).&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the screen below I broke it down into pieces:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Formula for the top left:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
var __cttbl =  CALCULATETABLE (
        SUMMARIZE ( Sales;Sales[ORDER_ID] );
        ALL ( Items );
        USERELATIONSHIP ( Sales[ITEM_ID]; 'Filtering Item'[ITEM_ID] ))

return
CONCATENATEX(__cttbl;" oid: " &amp;amp; [ORDER_ID])&lt;/LI-CODE&gt;&lt;P&gt;Formula for the bottom left:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure2 = 
var __cttbl =  CALCULATETABLE (
        SUMMARIZE ( Sales;Sales[ORDER_ID] );
        ALL ( Items );
        USERELATIONSHIP ( Sales[ITEM_ID]; 'Filtering Item'[ITEM_ID] ))

return
CALCULATE(CONCATENATEX(Sales; "oid: " &amp;amp; [ORDER_ID]))&lt;/LI-CODE&gt;&lt;P&gt;Formula to the bottom right:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure3 = 
var __cttbl =  CALCULATETABLE (
        SUMMARIZE ( Sales;Sales[ORDER_ID] );
        ALL ( Items );
        USERELATIONSHIP ( Sales[ITEM_ID]; 'Filtering Item'[ITEM_ID] ))

return
CALCULATE(CONCATENATEX(Sales; "oid: " &amp;amp; [ORDER_ID]); __cttbl)&lt;/LI-CODE&gt;&lt;P&gt;I find it very helpful to use variables and concatenatex to understand what is going on and/or debug code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope it helps people out there. Thumbs up if it does.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 07:17:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1150144#M17478</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-10T07:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1150422#M17483</link>
      <description>&lt;P&gt;As for the answer to your question, the code should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Unique Orders = 
VAR ItemCount = VALUES(Sales[ORDER_ID])
VAR FilterItemCount = CALCULATETABLE(VALUES(Sales[ORDER_ID]);ALL(Sales);TREATAS(VALUES('Filtering Item'[ITEM_ID]); Sales[ITEM_ID]))

RETURN
COUNTROWS(INTERSECT(ItemCount;FilterItemCount))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;as seen here:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With var FilterItemCount we first take all sales data and then apply the filter on item, set by the independent item table using treatas.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File is &lt;A href="https://1drv.ms/u/s!AvU6hhKLfmEcgdgVzlTh1Ub0r859hQ?e=iRjaFR" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pls mark as solution if this works for you.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Steve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 09:23:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1150422#M17483</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-10T09:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1150834#M17494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="4037" data-lia-user-login="stevedep" class="lia-mention lia-mention-user"&gt;stevedep&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for such a detailed explanation. This is what I have implemented. I am getting the below result as of now.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However, I wish to see the data in a correlation heatmap like below. (&lt;A href="https://www.linkedin.com/pulse/basket-analysis-power-bi-jani-zajc/" target="_blank"&gt;https://www.linkedin.com/pulse/basket-analysis-power-bi-jani-zajc/&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea how to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nikita&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 12:58:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1150834#M17494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-10T12:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1151014#M17505</link>
      <description>&lt;P&gt;Enable conditional formatting in the matrix on the measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad to be of help.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 15:06:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1151014#M17505</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-10T15:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1152054#M17550</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;see below.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Please mark as solution if this works for you. Many thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 06:21:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1152054#M17550</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-11T06:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1152160#M17552</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="4037" data-lia-user-login="stevedep" class="lia-mention lia-mention-user"&gt;stevedep&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am aware about the conditional formatting, however it is not the conditional formatting that I was talking about.&lt;/P&gt;&lt;P&gt;In the correlation heatmap below, there is no data in the intersection of same categories, for example, (Category2, Category2). Data can be seen only for different category combinations. Also, combinations are not repeating, for example (category2,category3) has some data while (category3,category2) is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my result, i have data in combinations like (beef,beef), (soda,soda) and also in repetitive combinations, (beef,onions), (onions,beef) and so on.&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;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nikita&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 07:14:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1152160#M17552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-11T07:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1154700#M17631</link>
      <description>&lt;P&gt;In that case you can apply the following code:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Unique Orders = 
VAR ItemCount = VALUES(Sales[ORDER_ID])
VAR FilterItemCount = CALCULATETABLE(VALUES(Sales[ORDER_ID]);ALL(Sales);TREATAS(VALUES('Filtering Item'[ITEM_ID]); Sales[ITEM_ID]))

RETURN
if(VALUE(MIN(Items[ITEM_ID]))&amp;lt;=VALUE(MIN('Filtering Item'[ITEM_ID]));
COUNTROWS(INTERSECT(ItemCount;FilterItemCount));BLANK())&lt;/LI-CODE&gt;&lt;P&gt;as seen here:&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Link to file &lt;A href="https://1drv.ms/u/s!AvU6hhKLfmEcgdgVzlTh1Ub0r859hQ?e=zhhmNH" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps you&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Kind regards, Steve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 06:36:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1154700#M17631</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-12T06:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1155040#M17644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="4037" data-lia-user-login="stevedep" class="lia-mention lia-mention-user"&gt;stevedep&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This is working exactly as required. Thanks a lot to put in all the effort!&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nikita&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 08:26:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-DAX/m-p/1155040#M17644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-12T08:26:43Z</dc:date>
    </item>
  </channel>
</rss>

