<?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: Distinct Count Two Measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787772#M37597</link>
    <description>&lt;P&gt;Thank you, the article is helpful. But my model is correct and I know it easy but I am not sure how to approach it. What is your recommendation?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 20:11:10 GMT</pubDate>
    <dc:creator>91asma2</dc:creator>
    <dc:date>2021-04-15T20:11:10Z</dc:date>
    <item>
      <title>Distinct Count Two Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1785420#M37502</link>
      <description />
      <pubDate>Wed, 23 Jun 2021 19:22:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1785420#M37502</guid>
      <dc:creator>91asma2</dc:creator>
      <dc:date>2021-06-23T19:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Two Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1785486#M37509</link>
      <description>&lt;P&gt;... which means your model is sub-optimal, to say the least. Your Users should exist in a dimensions of their own and be connected to both fact tables. Then it'll be DEAD EASY to do what you want. Please make your model correct first. If you want to know what it means you can read this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/star-schema" target="_blank"&gt;Understand star schema and the importance for Power BI - Power BI | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 21:01:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1785486#M37509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-14T21:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Two Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787772#M37597</link>
      <description>&lt;P&gt;Thank you, the article is helpful. But my model is correct and I know it easy but I am not sure how to approach it. What is your recommendation?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 20:11:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787772#M37597</guid>
      <dc:creator>91asma2</dc:creator>
      <dc:date>2021-04-15T20:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Two Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787851#M37598</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="229849" data-lia-user-login="91asma2" class="lia-mention lia-mention-user"&gt;91asma2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your model might be correct but I really suspect it's sub-optimal. Is your model a star-schema with conformed dimensions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, your problem with that much information is not solvable right now. You have to show us the measures, (ideally) the model and what it means "to count the useres that exist in both measures." One can't write DAX in a vacuum...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 21:35:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787851#M37598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-15T21:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Two Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787864#M37599</link>
      <description>&lt;P&gt;Hi daxer,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, my model is a star schema.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Jun 2021 19:22:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787864#M37599</guid>
      <dc:creator>91asma2</dc:creator>
      <dc:date>2021-06-23T19:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Two Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787895#M37605</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="229849" data-lia-user-login="91asma2" class="lia-mention lia-mention-user"&gt;91asma2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a separate dimension for your users?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 22:33:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787895#M37605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-15T22:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Two Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787897#M37606</link>
      <description>&lt;P&gt;Here's what the measures should look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;[Follow up] =
COUNTROWS(
    FILTER(
        VALUES( Assessment[User ID] ),
        CALCULATE(
            DISTINCTCOUNT( Assessment[assessment_id] ) &amp;gt;= 2
        )
    )
)

 
[Total Users Training] =
CALCULATE(
    DISTINCTCOUNT( 'Sessions'[User ID] ),
    KEEPFILTERS( 'Sessions'[Event Category] = "Training" )
)

[Users in Both] =
var FollowUpUsers =
    FILTER(
        VALUES( Assessment[User ID] ),
        CALCULATE(
            DISTINCTCOUNT( Assessment[assessment_id] ) &amp;gt;= 2
        )
    )
var TotalUsersTrainingUsers =
    CALCULATETABLE(
        DISTINCT( 'Sessions'[User ID] ),
        KEEPFILTERS( 'Sessions'[Event Category] = "Training" )
    )
var Result =
    COUNTROWS(
        INTERSECT(
            FollowUpUsers,
            TotalUsersTrainingUsers
        )
    )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 22:45:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787897#M37606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-15T22:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Two Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787909#M37608</link>
      <description>&lt;P&gt;This works! Thanks a lot&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;&lt;BR /&gt;and yes I do have a separate dimension for users.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 22:59:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787909#M37608</guid>
      <dc:creator>91asma2</dc:creator>
      <dc:date>2021-04-15T22:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count Two Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787925#M37610</link>
      <description>&lt;P&gt;Can you please mark the answer as the solution? This helps me and others who will be looking for something smilar... Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 23:15:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-Two-Measures/m-p/1787925#M37610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-15T23:15:28Z</dc:date>
    </item>
  </channel>
</rss>

