<?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: Cross Filter Multiple Fact Tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1480175#M28223</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="201206" data-lia-user-login="ctaulbee" class="lia-mention lia-mention-user"&gt;ctaulbee&lt;/a&gt;&amp;nbsp;An incremental view is a new view in a given month. So articles 1, 2, and 3 each had incrmental views in February, while articles 4 and 5 didn't.&amp;nbsp;Yes, you are correct that summing cumulative views would be double counting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are also correct that the Article Views table doesn't have a country identifier - that's because we don't actually have that data available in the data source. So what I want to understand is that, among articles tagged to a particular country, what % had incremental views in a given month. To be specific, Canada has access to articles 1 and 2, each of which had incremental views in Februrary, so the value would be 100% (2/2). Mexico has access to two articles 1 and 5. Because articles 1 had incremental views in February but article 2 didn't, the value for Mexico would be 50%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree it's not the mose meaningful metric, but it's what I've been asked to provide.&lt;/P&gt;</description>
    <pubDate>Sat, 07 Nov 2020 01:49:05 GMT</pubDate>
    <dc:creator>msmays5</dc:creator>
    <dc:date>2020-11-07T01:49:05Z</dc:date>
    <item>
      <title>Cross Filter Multiple Fact Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1480109#M28220</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following tables, plus a date table (fact tables in green, dimension tables in yellow)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are the following relationships:&lt;/P&gt;&lt;P&gt;1. 'Articles'[ArticleID] --&amp;gt; 'Article Views'[ArticleId]&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;'Articles'[ArticleID] --&amp;gt; 'Article Tags'[ArticleId]&lt;/P&gt;&lt;P&gt;3. 'Countries'[Country] --&amp;gt; 'Article Tags'[Country]&lt;/P&gt;&lt;P&gt;4. 'DateTable'[Date] --&amp;gt; 'Article Views'[Date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GOAL:&lt;/STRONG&gt;&amp;nbsp;Display the % of Articles Assigned to a Country with Incremental Views In Month. In other words: Count the articles visible to each country if that article had an incrmental view in the selected month and divide by all articles visible to the country&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following measures already created, but I'm not sure how to calculate the above:&amp;nbsp;&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;# of Articles Visible to Country:=
CALCULATE (
    DISTINCTCOUNT ( 'Article Tags'[ArticleId] ),
    CROSSFILTER ( 'Articles'[ArticleId], 'Articles Tags'[ArticleId], BOTH )
)
---------------------------------------------------------------------------------
# of Incremental Article Views in Month:= 
VAR _NumberInLatestMonth = [# of Cumulative Article Views]
VAR _NumberInPriorMonth = 
    CALCULATE (
            [# of Cumulative Article Views],
            PREVIOUSMONTH ( DateTable[Date] )
        )
RETURN
    _NumberInLatestMonth - _NumberInPriorMonth    &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;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreicated! If anything I listed isn't clear, please let me know. Thanks so much&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 23:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1480109#M28220</guid>
      <dc:creator>msmays5</dc:creator>
      <dc:date>2020-11-06T23:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Filter Multiple Fact Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1480137#M28221</link>
      <description>&lt;P&gt;It's a little hard to follow what you're hoping to accomplish. Not sure what you mean by an incremental view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have cumulative counts by month in your first fact table, does that mean if you simply sum 2 months you'd be double counting the first month?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, you have no country identifier in your first fact table, so if you take a sum of the article views and divide it by total number of countries who had access to that article, what would that tell you?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 00:40:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1480137#M28221</guid>
      <dc:creator>ctaulbee</dc:creator>
      <dc:date>2020-11-07T00:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Filter Multiple Fact Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1480175#M28223</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="201206" data-lia-user-login="ctaulbee" class="lia-mention lia-mention-user"&gt;ctaulbee&lt;/a&gt;&amp;nbsp;An incremental view is a new view in a given month. So articles 1, 2, and 3 each had incrmental views in February, while articles 4 and 5 didn't.&amp;nbsp;Yes, you are correct that summing cumulative views would be double counting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are also correct that the Article Views table doesn't have a country identifier - that's because we don't actually have that data available in the data source. So what I want to understand is that, among articles tagged to a particular country, what % had incremental views in a given month. To be specific, Canada has access to articles 1 and 2, each of which had incremental views in Februrary, so the value would be 100% (2/2). Mexico has access to two articles 1 and 5. Because articles 1 had incremental views in February but article 2 didn't, the value for Mexico would be 50%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree it's not the mose meaningful metric, but it's what I've been asked to provide.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 01:49:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1480175#M28223</guid>
      <dc:creator>msmays5</dc:creator>
      <dc:date>2020-11-07T01:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Filter Multiple Fact Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1480521#M28237</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="207035" data-lia-user-login="msmays5" class="lia-mention lia-mention-user"&gt;msmays5&lt;/a&gt;&amp;nbsp;, although your senario isn't that logical (&lt;SPAN&gt;the Article Views table doesn't have a country identifier), I came up with a solution in line with your description; you might want to refer to &lt;A href="https://1drv.ms/u/s!AsDP3LYI8umsgSqUebbIyxzIXi0N?e=1gekef" target="_blank" rel="noopener"&gt;&lt;EM&gt;&lt;STRONG&gt;the attached file&lt;/STRONG&gt;&lt;/EM&gt;&lt;/A&gt; for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR __articles = CALCULATETABLE ( DISTINCT ( dArticle[ArticleID] ), CALCULATETABLE ( fTag ) )
RETURN
    DIVIDE (
        SUMX (
            __articles,
            VAR __prev =
                CALCULATE ( [Views], PREVIOUSMONTH ( dDate[Date] ) )
            RETURN
                 ( [Views] &amp;gt; __prev ) + 0
        ),
        [# of Articles Visible to Country]
    )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 16:11:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1480521#M28237</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-11-07T16:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Filter Multiple Fact Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1500217#M28995</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;Sorry for the delayed response; when I first implemented the measure, it wasn't working for me, but I realized that my model had a relationship that caused it to not be in star schema. Once I fixed this, your answer worked perfectly! Thank you so much for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 22:48:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/1500217#M28995</guid>
      <dc:creator>msmays5</dc:creator>
      <dc:date>2020-11-17T22:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Filter Multiple Fact Tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/2045958#M45960</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have 2 fact tables that I would like to consolidate in a matrix viz that match/ align the (dates/transaactions) rows from those 2 fact tables , any suggestion pls? any help is much appreciated thank you so much!&lt;/SPAN&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;</description>
      <pubDate>Mon, 30 Aug 2021 10:51:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cross-Filter-Multiple-Fact-Tables/m-p/2045958#M45960</guid>
      <dc:creator>Nickiman</dc:creator>
      <dc:date>2021-08-30T10:51:08Z</dc:date>
    </item>
  </channel>
</rss>

