<?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: Slice visuals by region and date from two separate tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4336287#M172181</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="829283" data-lia-user-login="mariahMC" class="lia-mention lia-mention-user"&gt;mariahMC&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;First, remove the many-to-many relationship between the "Financial Data" and "Case Records" tables based on the "Region" column and create a new table that contains a unique list of regions. This table will act as a bridge between your "Financial Data" and "Case Records" tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create a Region Table&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RegionTable = DISTINCT(UNION(SELECTCOLUMNS('Financial Data', "Region", 'Financial Data'[Region]), SELECTCOLUMNS('Case Records', "Region", 'Case Records'[Region])))&lt;/LI-CODE&gt;&lt;P&gt;Create one-to-many relationships from the "RegionTable" to both the "Financial Data" and "Case Records" tables based on the "Region" column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure you have a date table with a unique list of dates, if not, you can create a new calendar table by this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DateTable = CALENDAR(MIN('Financial Data'[Date]), MAX('Financial Data'[Date]))&lt;/LI-CODE&gt;&lt;P&gt;Create one-to-many relationships from the "DateTable" to both the "Financial Data" and "Case Records" tables based on the "Date" column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, you can use the "DateTable" to filter by month and the "RegionTable" to filter by region in your visuals.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2024 07:05:40 GMT</pubDate>
    <dc:creator>Bibiano_Geraldo</dc:creator>
    <dc:date>2024-12-19T07:05:40Z</dc:date>
    <item>
      <title>Slice visuals by region and date from two separate tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4335769#M172163</link>
      <description>&lt;P&gt;I have two separate tables: one is case records that has a date column and a region column, the other table is financial data with a date column and a region column. I would like to filter my visuals by both region and month, the issue is that I cannot get all visuals to filter by month, only region. I created a dynamic date table in my model as well. Here is my model currently where Financial Data and Case records have a many to many relationship based on Region column. How do I create the relationship between these tables so that I can filter by month name too?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 23:43:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4335769#M172163</guid>
      <dc:creator>mariahMC</dc:creator>
      <dc:date>2024-12-18T23:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Slice visuals by region and date from two separate tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4336193#M172179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="829283" data-lia-user-login="mariahMC" class="lia-mention lia-mention-user"&gt;mariahMC&lt;/a&gt;&amp;nbsp;onl &lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships" target="_self"&gt;link&lt;/A&gt; there are examples how to create relationships in Power BI.&lt;/P&gt;
&lt;P&gt;Please note, if you are beginner as user, please use only one to many (many to one) relationship otherwise you will issues with your results (hard to understand results of measures), or if you really want / need other types of relationships put additional efforts to eventualy remodel your data model. This is just best practice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 06:29:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4336193#M172179</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-12-19T06:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Slice visuals by region and date from two separate tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4336287#M172181</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="829283" data-lia-user-login="mariahMC" class="lia-mention lia-mention-user"&gt;mariahMC&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;First, remove the many-to-many relationship between the "Financial Data" and "Case Records" tables based on the "Region" column and create a new table that contains a unique list of regions. This table will act as a bridge between your "Financial Data" and "Case Records" tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create a Region Table&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RegionTable = DISTINCT(UNION(SELECTCOLUMNS('Financial Data', "Region", 'Financial Data'[Region]), SELECTCOLUMNS('Case Records', "Region", 'Case Records'[Region])))&lt;/LI-CODE&gt;&lt;P&gt;Create one-to-many relationships from the "RegionTable" to both the "Financial Data" and "Case Records" tables based on the "Region" column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure you have a date table with a unique list of dates, if not, you can create a new calendar table by this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DateTable = CALENDAR(MIN('Financial Data'[Date]), MAX('Financial Data'[Date]))&lt;/LI-CODE&gt;&lt;P&gt;Create one-to-many relationships from the "DateTable" to both the "Financial Data" and "Case Records" tables based on the "Date" column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, you can use the "DateTable" to filter by month and the "RegionTable" to filter by region in your visuals.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 07:05:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4336287#M172181</guid>
      <dc:creator>Bibiano_Geraldo</dc:creator>
      <dc:date>2024-12-19T07:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Slice visuals by region and date from two separate tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4336468#M172185</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="829283" data-lia-user-login="mariahMC" class="lia-mention lia-mention-user"&gt;mariahMC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create one-to-many relationships:&lt;BR /&gt;Date[Date] → Case Records[Date]&lt;BR /&gt;Date[Date] → Financial Data[Date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of a direct many-to-many relationship on Region:&lt;BR /&gt;Create a Region Table with unique values for regions.&lt;BR /&gt;Relate Region Table[Region] to Case Records[Region] and Financial Data[Region] using one-to-many relationships.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add Date[MonthName] to slicers or filters in your visuals. This will ensure both tables respect the selected month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set all relationships between the Date Table and your fact tables (Case Records, Financial Data) to single-directional to avoid ambiguity.&lt;BR /&gt;Ensure your Region Table relationships are single-directional unless you explicitly need bi-directional filtering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":love_letter:"&gt;💌&lt;/span&gt; &lt;STRONG&gt;If this helped, a Kudos &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; or Solution mark &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; would be great! &lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Kedar&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="https://www.linkedin.com/in/kedar-pande" target="_blank" rel="noopener"&gt;Connect on LinkedIn&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 08:16:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4336468#M172185</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2024-12-19T08:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Slice visuals by region and date from two separate tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4337299#M172221</link>
      <description>&lt;P&gt;Thank you so much this was very helpful and worked! I didn't like the many to many relationship I had before but didn't know how else to connect the two. I am still learning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 15:55:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4337299#M172221</guid>
      <dc:creator>mariahMC</dc:creator>
      <dc:date>2024-12-19T15:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Slice visuals by region and date from two separate tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4337300#M172222</link>
      <description>&lt;P&gt;Thanks for the advice, I didn't like the many to many relationship I had before but didn't know how else to connect the two. I am still learning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 15:56:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4337300#M172222</guid>
      <dc:creator>mariahMC</dc:creator>
      <dc:date>2024-12-19T15:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Slice visuals by region and date from two separate tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4337301#M172223</link>
      <description>&lt;P&gt;Thank you very much for this advice!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 15:56:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slice-visuals-by-region-and-date-from-two-separate-tables/m-p/4337301#M172223</guid>
      <dc:creator>mariahMC</dc:creator>
      <dc:date>2024-12-19T15:56:40Z</dc:date>
    </item>
  </channel>
</rss>

