<?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: Need some help with Date (bridge) table for drop down menu in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-with-Date-bridge-table-for-drop-down-menu/m-p/4018003#M158451</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;Thanks for your contribution on this thread.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296339" data-lia-user-login="JustinDoh1" class="lia-mention lia-mention-user"&gt;JustinDoh1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can set the relationship between Calendar month and Table_1 and Calendar month and Table_2 as active. The important thing to note here is that there can &lt;STRONG&gt;only&lt;/STRONG&gt; be &lt;FONT color="#FF0000"&gt;one active&lt;/FONT&gt; relationship between two tables. When discussing any potential consequences, could you clarify which side you are referring to? Is it related to data display or another aspect?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships#wrong-active-relationship" target="_self"&gt;Create and manage relationships in Power BI Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2024 07:21:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-01T07:21:07Z</dc:date>
    <item>
      <title>Need some help with Date (bridge) table for drop down menu</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-with-Date-bridge-table-for-drop-down-menu/m-p/4005290#M156447</link>
      <description>&lt;P&gt;I am trying to make my Date table work by possibly adding a column (or possibly a logic) so that I could&amp;nbsp;Sort properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have uploaded &lt;A href="https://drive.google.com/file/d/1h1wBxu1DSyvr3dJ0CK9solIrOLc4GqYq/view?usp=sharing" target="_self"&gt;my PowerBI file here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see on the bottom screenshot, the lastest "New Processing Date" is May 2024.&lt;/P&gt;&lt;P&gt;I have pulled data from SQL, and it is a &lt;STRONG&gt;varchar data type&lt;/STRONG&gt; so that I could show "&lt;STRONG&gt;Current =&lt;/STRONG&gt; ".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The issue is that since this is &lt;STRONG&gt;Varchar data type&lt;/STRONG&gt;, not a Date type, sorting is alphabetical.&lt;/P&gt;&lt;P&gt;I would like to display "New Processing Date" as Date asc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I go about fixing this Date table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I used Dax to combine two fields from two tables together to create a Date table called "Date Bridge", and it is used for the drop down menu of visual for "New Processing Date".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Date Bridge =&lt;/SPAN&gt; &lt;SPAN&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;union&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table_1'&lt;/SPAN&gt;&lt;SPAN&gt;[New Processing Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;all&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table_2&lt;/SPAN&gt;&lt;SPAN&gt;[New Processing Date]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Is there a way to add a new column in "Date Bridge" table and sort by "Processing Date" since this column is a date column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does Date table only allow one column?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to utilize having a separate a Date table "Date Bridge" for the design of this visual instead of using "New Processing Date" column from Table_1 or Table_2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, if there is no other way to sort properly, I guess I would have to use "New Processing Date" from either Table_1 or Table_2, but I don't think that is a good design, right?&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>Sun, 23 Jun 2024 01:22:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-with-Date-bridge-table-for-drop-down-menu/m-p/4005290#M156447</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2024-06-23T01:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with Date (bridge) table for drop down menu</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-with-Date-bridge-table-for-drop-down-menu/m-p/4005406#M156454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296339" data-lia-user-login="JustinDoh1" class="lia-mention lia-mention-user"&gt;JustinDoh1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;There are multiple ways to achive your required sort order and one of them is to use the calculated calendar table and summarize it for the month year field, and then sort "mmmm yyyy" field which was alphabetically sorted originally by "yyyy-mm" to ensure that the sort order respects numerical month order instead of alphabetical sort order.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A calculated calendar table with month granularity can be produced by the following dax formula.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar month =
SUMMARIZE (
    ADDCOLUMNS (
        CALENDAR ( DATE ( 2022, 1, 1 ), DATE ( 2024, 12, 31 ) ),
        "yyyy-mm", FORMAT ( [Date], "yyyy-mm" ),
        "mmm-yyyy", FORMAT ( [Date], "mmm-yyyy" ),
        "mmmm yyyy", FORMAT ( [Date], "mmmm yyyy" )
    ),
    [mmm-yyyy],
    [mmmm yyyy],
    [yyyy-mm]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then, you can create a calculated column in the calculated calendar table to identify the Current month from your fact table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can fix the sorting issue of "mmmm yyyy" by using the following user interface in the table view.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The resultant output shows the properly sorted mmmm yyyy field which identifies Current month properly.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;This is one of many ways to achive your required output. I attach an example pbix file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 06:37:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-with-Date-bridge-table-for-drop-down-menu/m-p/4005406#M156454</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-06-23T06:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with Date (bridge) table for drop down menu</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-with-Date-bridge-table-for-drop-down-menu/m-p/4009928#M157735</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp; Thank you so much for your help. I think this would work. Let me take a deeper look later.&lt;/P&gt;&lt;P&gt;As far as relationship with two other tables (Table_1 &amp;amp; Table_2), can I make them Active? Any consequences?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 22:34:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-with-Date-bridge-table-for-drop-down-menu/m-p/4009928#M157735</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2024-06-25T22:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with Date (bridge) table for drop down menu</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-with-Date-bridge-table-for-drop-down-menu/m-p/4018003#M158451</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;Thanks for your contribution on this thread.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296339" data-lia-user-login="JustinDoh1" class="lia-mention lia-mention-user"&gt;JustinDoh1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can set the relationship between Calendar month and Table_1 and Calendar month and Table_2 as active. The important thing to note here is that there can &lt;STRONG&gt;only&lt;/STRONG&gt; be &lt;FONT color="#FF0000"&gt;one active&lt;/FONT&gt; relationship between two tables. When discussing any potential consequences, could you clarify which side you are referring to? Is it related to data display or another aspect?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships#wrong-active-relationship" target="_self"&gt;Create and manage relationships in Power BI Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 07:21:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-some-help-with-Date-bridge-table-for-drop-down-menu/m-p/4018003#M158451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-01T07:21:07Z</dc:date>
    </item>
  </channel>
</rss>

