<?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: Creating a Dimension that is dependent on Parameter Selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Dimension-that-is-dependent-on-Parameter-Selected/m-p/4390630#M174303</link>
    <description>&lt;P&gt;read about Field Parameters, that's the closest you can get to that.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters" target="_blank"&gt;Use report readers to change visuals (preview) - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Feb 2025 01:48:18 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-02-01T01:48:18Z</dc:date>
    <item>
      <title>Creating a Dimension that is dependent on Parameter Selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Dimension-that-is-dependent-on-Parameter-Selected/m-p/4390610#M174302</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am transitioning from Tableau to Power BI and am Struggling finding DAX Expressions that allow the rows/columns in a Matrix to adjust based on the parameter selection. In Tableau this was a simple task because I could just write the calculated field below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aging Days&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if [&lt;SPAN&gt;Aging Parameter&lt;/SPAN&gt;] = "DOS Aging" Then [DOS Aging]&lt;/P&gt;&lt;P&gt;elseif [&lt;SPAN&gt;Aging Parameter&lt;/SPAN&gt;] = "Denial Aging" then [Denial Aging]&lt;/P&gt;&lt;P&gt;END&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aging Group&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CASE [Aging Days]&lt;/P&gt;&lt;P&gt;WHEN "000 - 030" THEN "000 - 090"&lt;/P&gt;&lt;P&gt;WHEN "031 - 060" THEN "000 - 090"&lt;/P&gt;&lt;P&gt;WHEN "061 - 090" THEN "000 - 090"&lt;/P&gt;&lt;P&gt;ELSE "091 +"&lt;/P&gt;&lt;P&gt;END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I create a new Column that groups the days based on the Parameter Selection in a Matrix? No Matter which Aging Parameter is selected the Grouping is the same but the Aging Days will vary based on which selection is made (DOS or Denials).&lt;BR /&gt;&lt;BR /&gt;Thank You in advance for your help!&lt;BR /&gt;&lt;BR /&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>Sat, 01 Feb 2025 01:01:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Dimension-that-is-dependent-on-Parameter-Selected/m-p/4390610#M174302</guid>
      <dc:creator>EACruz</dc:creator>
      <dc:date>2025-02-01T01:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Dimension that is dependent on Parameter Selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Dimension-that-is-dependent-on-Parameter-Selected/m-p/4390630#M174303</link>
      <description>&lt;P&gt;read about Field Parameters, that's the closest you can get to that.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters" target="_blank"&gt;Use report readers to change visuals (preview) - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 01:48:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Dimension-that-is-dependent-on-Parameter-Selected/m-p/4390630#M174303</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-01T01:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Dimension that is dependent on Parameter Selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Dimension-that-is-dependent-on-Parameter-Selected/m-p/4390853#M174315</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="922808" data-lia-user-login="EACruz" class="lia-mention lia-mention-user"&gt;EACruz&lt;/a&gt; ,&lt;BR /&gt;Here's how to achieve dynamic aging groups in Power BI using DAX:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Create a Parameter Table&lt;/STRONG&gt; (Disconnected Table) : &lt;EM&gt;AgingParameter = DATATABLE("Aging Selection", STRING, { "DOS Aging", "Denial Aging" })&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Capture Selected Parameter: &lt;BR /&gt;&lt;EM&gt;SelectedAging = SELECTEDVALUE(AgingParameter[Aging Selection], "DOS Aging")&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;Define Aging Days Based on Selection: &lt;BR /&gt;&lt;EM&gt;AgingDays = SWITCH([SelectedAging], &lt;/EM&gt;&lt;EM&gt;"DOS Aging", SELECTEDVALUE('YourTable'[DOS Aging]), &lt;/EM&gt;&lt;EM&gt;"Denial Aging", SELECTEDVALUE('YourTable'[Denial Aging]))&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Create Aging Group Logic: AgingGroup: &lt;BR /&gt;&lt;EM&gt;AgingGroup = SWITCH(TRUE(), [AgingDays] IN {"000 - 030", "031 - 060", "061 - 090"}, "000 - 090","091 +")&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Use in Matrix Visual&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Place AgingGroup in Rows.&lt;/LI&gt;
&lt;LI&gt;Use measure values in Values.&lt;/LI&gt;
&lt;LI&gt;Add AgingParameter[Aging Selection] as a slicer.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&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>Sat, 01 Feb 2025 12:09:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Dimension-that-is-dependent-on-Parameter-Selected/m-p/4390853#M174315</guid>
      <dc:creator>rohit1991</dc:creator>
      <dc:date>2025-02-01T12:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Dimension that is dependent on Parameter Selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Dimension-that-is-dependent-on-Parameter-Selected/m-p/4395242#M174503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824538" data-lia-user-login="rohit1991" class="lia-mention lia-mention-user"&gt;rohit1991&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I appreciate the detailed explanation! I was able to reacreate all of the Fields as you mentioned above.&lt;BR /&gt;&lt;BR /&gt;The only challenge with 'Aging Days' is that if we use the &lt;A href="https://learn.microsoft.com/en-us/dax/selectedvalue-function-dax" target="_self"&gt;SELECTEDVALUE&lt;/A&gt; function then we are expecting to see One Distinct Value&amp;nbsp;but as shown below 'DOS Aging' and 'Denial Aging' has a list of Values. I wanted to use it as a Dimension to toggle between one and the other without the addition of another Parameter. In other words, 'Aging Selection' should allow me to switch between 'DOS Aging' and 'Denial Aging' Dimensions.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 01:20:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Dimension-that-is-dependent-on-Parameter-Selected/m-p/4395242#M174503</guid>
      <dc:creator>EACruz</dc:creator>
      <dc:date>2025-02-05T01:20:31Z</dc:date>
    </item>
  </channel>
</rss>

