<?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: Count distinct families across multiple program fact tables—unique columns break the usual patterns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4732560#M181282</link>
    <description>&lt;P&gt;Hi, none of the responses have resolved the issue as of yet. Thanks for following up, and I will keep it open.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jun 2025 19:17:56 GMT</pubDate>
    <dc:creator>YSI</dc:creator>
    <dc:date>2025-06-15T19:17:56Z</dc:date>
    <item>
      <title>Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4673648#M178993</link>
      <description>&lt;P&gt;Hi, first-time poster &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Goal&lt;/STRONG&gt;&lt;BR /&gt;How can I count &lt;EM&gt;distinct&lt;/EM&gt; ACT_ID (families) across multiple program fact tables, while letting users slice by &lt;STRONG&gt;shared&lt;/STRONG&gt; dimensions (Year, State) &lt;EM&gt;and&lt;/EM&gt; &lt;STRONG&gt;program-specific&lt;/STRONG&gt; attributes (e.g. MomsMeet[Location])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;At the core we're counting how many distinct ACT_IDs there are, filtered by the columns in the various programs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt; We’re a non-profit with many programs; each program stores the participants in its own fact table. New columns are added to each program and new programs are added,&amp;nbsp;&lt;SPAN&gt;limits common workarounds (like aggregations). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt; A model that'll enable counting how many distinct families participate across all of our programs. With slicers to filter only families in some programs, or only those those that equal certain values in columns unique to that program (like MomsMeet[Location]). See image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Simplified model&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;Dimensions&lt;/EM&gt;&lt;BR /&gt;• Dim Accounts (ACT_ID, State) this is the family table&lt;BR /&gt;• Dim Individuals (IND_ID, ACT_ID, Name, Gender)&lt;/P&gt;&lt;P class=""&gt;• Dim Programs (Program_ID)&lt;BR /&gt;• Dim Years (Year)&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;EM&gt;Facts (few examples)&lt;/EM&gt;&lt;BR /&gt;• Fact MomsMeet (IND_ID, Year, Program_ID, Location, …)&lt;BR /&gt;• Fact SummerYouthGroups&amp;nbsp;(IND_ID, Year, Program_ID, Session...)&lt;BR /&gt;&lt;EM&gt;(each fact is unique on IND_ID + Year; largest ≈ 60 k rows, this may help a lot)&lt;/EM&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;EM&gt;&lt;STRONG&gt;What I’m after&lt;/STRONG&gt;&lt;BR /&gt;• Modelling pattern that preserves program-specific slicers.&lt;BR /&gt;• Avoid heavy DAX (like&amp;nbsp; USERELATIONSHIP&amp;nbsp;, &lt;FONT face="Menlo, Monaco, Consolas, Courier New, monospace" color="#000000"&gt;&lt;SPAN&gt;CROSSFILTER&lt;/SPAN&gt;&lt;/FONT&gt;,&amp;nbsp;TREATAS per slicer) if possible&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://oorah-my.sharepoint.com/:u:/g/personal/ysinger_oorah_org/EaEJoSrFxiVBlmy_vgp8XRYBrUDO-B1ytbLAjCvOqkaClQ?e=Q17tlT" target="_blank" rel="noopener"&gt;Onedrive .pbix file&lt;/A&gt; with synthetic data and program names. Or see model diagram below. Thanks for any pointers! &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll write in a comment which approaches I tried but didn't work.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 14:50:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4673648#M178993</guid>
      <dc:creator>YSI</dc:creator>
      <dc:date>2025-04-30T14:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4673653#M178995</link>
      <description>&lt;P&gt;Approaches I tried&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Single appended fact table of all programs&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Slicing on a program-specific column (like MomsMeet[Location] grays out the other rows, making it not possible to filter out values in those rows&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;2. Wide flat table&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Row per IND_ID&lt;/EM&gt;: Tens of mostly empty columns - unmanagable&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Row per IND + Year&lt;/EM&gt;: When a program specific slicer takes out a row, it only removes that IND + Year, but keeps that IND in other Years. It should remove the IND completely.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;3. Classic star-schema variants&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Combined program table linking to fact program tables: Same graying out row issue as #1&lt;/LI&gt;&lt;LI&gt;Dim IND hub with bidrectional links to fact tables: counts are ok, but you can't add shared dimension tables without becoming ambiguous&lt;/LI&gt;&lt;LI&gt;Dim IND hub with Many to Many links to fact tables. Blocks filter context for non-key columns—and we’d rather steer clear of M:M relationships.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;4. Dax workarounds (USERELATIONSHIP, CROSSFILTER, TREATAS)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What I found was too complex to maintain. Some approaches needed formulas for every slicer.&lt;/LI&gt;&lt;/UL&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, 30 Apr 2025 14:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4673653#M178995</guid>
      <dc:creator>YSI</dc:creator>
      <dc:date>2025-04-30T14:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4675863#M179065</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1268104" data-lia-user-login="YSI" class="lia-mention lia-mention-user"&gt;YSI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for being part of the Microsoft Fabric Community.&lt;BR /&gt;You can utilize DAX functions to combine the FamilyID columns from all fact tables and then count the distinct values.&lt;BR /&gt;&lt;BR /&gt;TotalUniqueFamilies = &lt;BR /&gt;COUNTROWS(&lt;BR /&gt;DISTINCT(&lt;BR /&gt;UNION(&lt;BR /&gt;SELECTCOLUMNS(FactTable1, "FamilyID", FactTable1[FamilyID]),&lt;BR /&gt;SELECTCOLUMNS(FactTable2, "FamilyID", FactTable2[FamilyID]),&lt;BR /&gt;SELECTCOLUMNS(FactTable3, "FamilyID", FactTable3[FamilyID])&lt;BR /&gt;-- Add additional SELECTCOLUMNS for more fact tables as needed&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;This method effectively aggregates unique FamilyID values across all specified fact tables.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Best Regards,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Community Support Team _ C Srikanth.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 12:43:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4675863#M179065</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2025-05-01T12:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4676241#M179089</link>
      <description>&lt;P&gt;Interesting! Has the same problem as approach 3 I mentioned in earlier comment:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Slicing on a program-specific column (like MomsMeet[Location] grays out the other rows, making it not possible to filter out values in those rows&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let's say you have image one. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then you filter MomMeet[Location]. Now the rows of SummerYouthGroups get filtered out, and not able to be further filtered by Session July or August. See image 2, where it did this visually.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also a measure like this needs lots of TREATAS or other DAX to make relationships. Hard to maintain.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 18:45:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4676241#M179089</guid>
      <dc:creator>YSI</dc:creator>
      <dc:date>2025-05-01T18:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4691917#M179665</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1268104" data-lia-user-login="YSI" class="lia-mention lia-mention-user"&gt;YSI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for being part of the Microsoft Fabric Community.&lt;BR /&gt;As requested please do follow the steps to resolve your issue and check the attached pbix file and build your custom visuals.&lt;/P&gt;
&lt;P&gt;1. Prepare Data in Excel&lt;BR /&gt;Use the data in your uploaded screenshot to create three sheets in Excel (or separate CSVs if you prefer):&lt;/P&gt;
&lt;P&gt;Sheet 1: Fact_MomsMeet&lt;/P&gt;
&lt;P&gt;*************************************************************************************&lt;/P&gt;
&lt;P&gt;ACT_ID IND_ID Year Program_ID Location&lt;BR /&gt;100 149141 2024 2 East Brunswick&lt;BR /&gt;200 136313 2022 2 East Brunswick&lt;BR /&gt;100 115799 2023 2 Atlanta&lt;BR /&gt;200 173370 2024 2 Atlanta&lt;BR /&gt;100 149141 2023 2 Atlanta&lt;BR /&gt;*************************************************************************************&lt;/P&gt;
&lt;P&gt;Sheet 2: Fact_SummerYouth&lt;/P&gt;
&lt;P&gt;ACT_ID IND_ID Year Program_ID Session&lt;BR /&gt;200 136313 2023 1 July&lt;BR /&gt;100 115799 2023 1 July&lt;BR /&gt;200 173370 2023 1 August&lt;BR /&gt;*************************************************************************************&lt;/P&gt;
&lt;P&gt;Sheet 3: Dim_Accounts&lt;/P&gt;
&lt;P&gt;ACT_ID State&lt;BR /&gt;100 Texas&lt;BR /&gt;200 Georgia&lt;BR /&gt;*************************************************************************************&lt;/P&gt;
&lt;P&gt;Sheet 4: Dim_Years&lt;/P&gt;
&lt;P&gt;Year&lt;BR /&gt;2022&lt;BR /&gt;2023&lt;BR /&gt;2024&lt;BR /&gt;*************************************************************************************&lt;/P&gt;
&lt;P&gt;2. Load Data in Power BI&lt;BR /&gt;Import these four sheets as separate tables.&lt;/P&gt;
&lt;P&gt;3. Create Bridge_ProgramParticipation Using DAX&lt;BR /&gt;Create a new table (Modeling → New Table):&lt;/P&gt;
&lt;P&gt;dax&lt;BR /&gt;Copy&lt;BR /&gt;Edit&lt;BR /&gt;Bridge_ProgramParticipation =&lt;BR /&gt;UNION(&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;Fact_MomsMeet,&lt;BR /&gt;"ACT_ID", Fact_MomsMeet[ACT_ID],&lt;BR /&gt;"Year", Fact_MomsMeet[Year],&lt;BR /&gt;"Program", "MomsMeet",&lt;BR /&gt;"Location", Fact_MomsMeet[Location],&lt;BR /&gt;"Session", BLANK()&lt;BR /&gt;),&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;Fact_SummerYouth,&lt;BR /&gt;"ACT_ID", Fact_SummerYouth[ACT_ID],&lt;BR /&gt;"Year", Fact_SummerYouth[Year],&lt;BR /&gt;"Program", "SummerYouthGroups",&lt;BR /&gt;"Location", BLANK(),&lt;BR /&gt;"Session", Fact_SummerYouth[Session]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;4. Create Relationships&lt;BR /&gt;Bridge_ProgramParticipation[ACT_ID] → Dim_Accounts[ACT_ID]&lt;/P&gt;
&lt;P&gt;Bridge_ProgramParticipation[Year] → Dim_Years[Year]&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;5. Create Measure&lt;BR /&gt;TotalFamilies :=&lt;BR /&gt;DISTINCTCOUNT(Bridge_ProgramParticipation[ACT_ID])&lt;BR /&gt;&lt;BR /&gt;6. Add Slicers &amp;amp; Charts&lt;BR /&gt;Use visuals based on:&lt;/P&gt;
&lt;P&gt;TotalFamilies (card)&lt;/P&gt;
&lt;P&gt;Bridge_ProgramParticipation[Program] (slicer)&lt;/P&gt;
&lt;P&gt;Bridge_ProgramParticipation[Location] (slicer)&lt;/P&gt;
&lt;P&gt;Bridge_ProgramParticipation[Session] (slicer)&lt;/P&gt;
&lt;P&gt;Dim_Years[Year] (slicer)&lt;/P&gt;
&lt;P&gt;Now you'll see the total family count adjusting dynamically across all program-specific and shared filters.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Best Regards,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Community Support Team _ C Srikanth.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 07:22:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4691917#M179665</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2025-05-14T07:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4695945#M179845</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1268104" data-lia-user-login="YSI" class="lia-mention lia-mention-user"&gt;YSI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to follow up since I haven't heard from you in a while. Have you had a chance to try the suggested solutions?&lt;BR /&gt;If your issue is resolved, please consider marking the post as solved. However, if you're still facing challenges, feel free to share the details, and we'll be happy to assist you further.&lt;BR /&gt;Looking forward to your response!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ C Srikanth.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 12:05:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4695945#M179845</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2025-05-16T12:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4707964#M180312</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="821202" data-lia-user-login="v-csrikanth" class="lia-mention lia-mention-user"&gt;v-csrikanth&lt;/a&gt;! Doesn't work in my case because choosing a slicer is completely removing all other rows, making it not possible to further filter out based on fields on the removed rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the example in your power BI file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the visuals pane, choosing New Brunswick should allow for further filtering of session, but it's blank and not showing July/August.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 19:27:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4707964#M180312</guid>
      <dc:creator>YSI</dc:creator>
      <dc:date>2025-05-26T19:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4721560#M180844</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1268104" data-lia-user-login="YSI" class="lia-mention lia-mention-user"&gt;YSI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to fabric community.&lt;BR /&gt;Sorry for the late response.&lt;/P&gt;
&lt;P&gt;You can try the below approach that will works your requirement.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new table-&lt;BR /&gt;CombinedIDS = &lt;SPAN&gt;UNION&lt;/SPAN&gt;(Fact_Momsmeet,Fact_SummerYouth)&lt;/LI&gt;
&lt;LI&gt;Modelling changes-&lt;BR /&gt;Connect CombinedIDs with DimYears (Year)&lt;BR /&gt;Connect CombinedIDs with Fact_SummerYouth(IND_ID)&lt;/LI&gt;
&lt;LI&gt;Create the DAX-&lt;BR /&gt;&lt;BR /&gt;TotalDistinctFamilies2 =&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;VAR &lt;SPAN&gt;MomsMeetIDs&lt;/SPAN&gt; =&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt; (&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;VALUES&lt;/SPAN&gt; ( Fact_MomsMeet[ACT_ID] ),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt; ( Fact_MomsMeet )&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;
&lt;P&gt;VAR &lt;SPAN&gt;SummerYouthIDs&lt;/SPAN&gt; =&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt; (&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;VALUES&lt;/SPAN&gt; ( Bridge_ProgramParticipation[ACT_ID] ),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt; (Fact_SummerYouth )&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-- Added more programs here...&lt;/P&gt;
&lt;P&gt;VAR &lt;SPAN&gt;CombinedIDs&lt;/SPAN&gt; =&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;UNION&lt;/SPAN&gt; ( &lt;SPAN&gt;MomsMeetIDs&lt;/SPAN&gt;, &lt;SPAN&gt;SummerYouthIDs&lt;/SPAN&gt; )&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt; ( CombinedIDs[ACT_ID] )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will get below result-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the attahced pbix file for reference-&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If the above information helps you, please give us a Kudos and marked the Accept as a solution.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Best Regards,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Community Support Team _ C Srikanth.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 13:26:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4721560#M180844</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2025-06-05T13:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4725452#M181005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1268104" data-lia-user-login="YSI" class="lia-mention lia-mention-user"&gt;YSI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to follow up since I haven't heard from you in a while. Have you had a chance to try the suggested solutions?&lt;BR /&gt;If your issue is resolved, please consider marking the post as solved. However, if you're still facing challenges, feel free to share the details, and we'll be happy to assist you further.&lt;BR /&gt;Looking forward to your response!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ C Srikanth.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 09:43:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4725452#M181005</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2025-06-09T09:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4731516#M181239</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1268104" data-lia-user-login="YSI" class="lia-mention lia-mention-user"&gt;YSI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's been a while since I heard back from you and I wanted to follow up. Have you had a chance to try the solutions that have been offered? &lt;BR /&gt;If the issue has been resolved, can you mark the post as resolved? If you're still experiencing challenges, please feel free to let us know and we'll be happy to continue to help!&lt;BR /&gt;Looking forward to your reply!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ C Srikanth.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 12:00:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4731516#M181239</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2025-06-13T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4732560#M181282</link>
      <description>&lt;P&gt;Hi, none of the responses have resolved the issue as of yet. Thanks for following up, and I will keep it open.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 19:17:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4732560#M181282</guid>
      <dc:creator>YSI</dc:creator>
      <dc:date>2025-06-15T19:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4734465#M181349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1268104" data-lia-user-login="YSI" class="lia-mention lia-mention-user"&gt;YSI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Could you please check the above response of mine attached the pbix file.&lt;BR /&gt;Let us know what is the issue you are facing describe us in detail.&lt;BR /&gt;If possible do attach the screenshot with the requirements and pbix file.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Cheri Srikanth&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 08:13:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4734465#M181349</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2025-06-17T08:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count distinct families across multiple program fact tables—unique columns break the usual patterns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4738388#M181488</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1268104" data-lia-user-login="YSI" class="lia-mention lia-mention-user"&gt;YSI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you got any chance to look inot the above attached pbix file and let us know if you are facing any issues.&lt;BR /&gt;Fell free to attach the pbix file if no sensitive data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As per Microsoft community guidelines, we will now proceed to close this thread to keep discussions focused and manageable. If you still need assistance, you're &lt;STRONG&gt;welcome to start a new thread in the community at any time.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We appreciate your understanding and participation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Cheri Srikanth&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 07:51:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-distinct-families-across-multiple-program-fact-tables/m-p/4738388#M181488</guid>
      <dc:creator>v-csrikanth</dc:creator>
      <dc:date>2025-06-20T07:51:01Z</dc:date>
    </item>
  </channel>
</rss>

