<?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: Average of DISTINCT count (two columns) in a filtered table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2077167#M47070</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219728" data-lia-user-login="sashaxiv" class="lia-mention lia-mention-user"&gt;sashaxiv&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, the measure I gave you reacts to any slicing. That was the idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, would you please mark my answer as THE answer and give me a thumbs-up?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The former is (almost) required as it'll help others, the latter is optional (as it'll help only me). Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 08:04:48 GMT</pubDate>
    <dc:creator>daxer-almighty</dc:creator>
    <dc:date>2021-09-15T08:04:48Z</dc:date>
    <item>
      <title>Average of DISTINCT count (two columns) in a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2075849#M47014</link>
      <description>&lt;P&gt;Morning All!&lt;/P&gt;&lt;P&gt;I would like to ask for some tips regarding next problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following tables in my data model:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Product Category&lt;/LI&gt;&lt;LI&gt;Stock (sku, id_store, units, date)&lt;/LI&gt;&lt;LI&gt;Stores(id_Store)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The visualizacion I am looking for is&amp;nbsp; Category, average number of diferent skus by store in a given date (today-2)&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;in product category "Toys" there are 30 diferent skus in average by store&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;in product category "Tools" there are 40 diferent skus in average by store&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any recommendations in order to get this visualization with a Dax measure?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 16:17:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2075849#M47014</guid>
      <dc:creator>sashaxiv</dc:creator>
      <dc:date>2021-09-14T16:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Average of DISTINCT count (two columns) in a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2076376#M47035</link>
      <description>&lt;LI-CODE lang="csharp"&gt;// Not really clear what you want
// but here's an attempt to understand...

[Avg #SKUs (by Store)] =
AVERAGEX(
    // Averages the number of all distinct
    // SKU's in the current context over all
    // visible stores.
    SUMMARIZE(
        Stock,
        Stores[StoreID]
    ),
    CALCULATE(
        DISTINCTCOUNT( Stock[sku] )
    )
)

// If you slice your data by categories
// it'll return the average number of
// SKU's in the given category/categories.
// Again, the averaging is done over
// all visible stores.&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Sep 2021 22:10:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2076376#M47035</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2021-09-14T22:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Average of DISTINCT count (two columns) in a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2077039#M47068</link>
      <description>&lt;P&gt;Thank you very much! This was exactly what I was looking for.&lt;/P&gt;&lt;P&gt;Now I need to filter stock table to be able to count skus in a given date (today-2), not in all the stock table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 07:20:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2077039#M47068</guid>
      <dc:creator>sashaxiv</dc:creator>
      <dc:date>2021-09-15T07:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Average of DISTINCT count (two columns) in a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2077167#M47070</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219728" data-lia-user-login="sashaxiv" class="lia-mention lia-mention-user"&gt;sashaxiv&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, the measure I gave you reacts to any slicing. That was the idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, would you please mark my answer as THE answer and give me a thumbs-up?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The former is (almost) required as it'll help others, the latter is optional (as it'll help only me). Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 08:04:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2077167#M47070</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2021-09-15T08:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Average of DISTINCT count (two columns) in a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2077422#M47083</link>
      <description>&lt;P&gt;By the way, where would you introduce a DAX filter sentence to get the stock filtered by date?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 09:42:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2077422#M47083</guid>
      <dc:creator>sashaxiv</dc:creator>
      <dc:date>2021-09-15T09:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Average of DISTINCT count (two columns) in a filtered table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2078254#M47125</link>
      <description>&lt;P&gt;Don't know what you really mean... If you start slicing by dates, the measure will adjust itself automatically.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 16:31:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-of-DISTINCT-count-two-columns-in-a-filtered-table/m-p/2078254#M47125</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2021-09-15T16:31:00Z</dc:date>
    </item>
  </channel>
</rss>

