<?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: call two different measure parameter in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3472672#M132612</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to create one parameter with all measure names and then add a Group column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Group = 
IF(Parameter[Parameter] in {"M1","M2","M3"},"Group1","Group2")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 06:34:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-12T06:34:57Z</dc:date>
    <item>
      <title>call two different measure parameter in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3468888#M132426</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created two measure parameter, Parameter1 contains 3 measure as M1,M2 &amp;amp; M3. Parameter2 contains 2 measures M4,M5. If I directly call this parameter in table visual, it works fine and displayes individual measures of that parameter, but what I want is, if select Group1 from slicer, I want to show Measures of Parameter1 in table visual, basically want to call Parameter1 table. If I select Group2 from slicer, I want to show measures of Parameter2.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 13:09:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3468888#M132426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-10T13:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: call two different measure parameter in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3469270#M132441</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can dynamically use field parameters to change the measures or dimensions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To get started, you need to enable the Field parameters preview feature.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Go to File &amp;gt; Options and Settings&amp;gt; Options &amp;gt; Preview features in Power BI Desktop. Select the Field parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Once enabled, you can create a new&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Measure =&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF (&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECTEDVALUE ( 'Table'[Group] ) = "Group1",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[Parameter1.M1] + [Parameter1.M2] + [Parameter1.M3],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[Parameter2.M4] + [Parameter2.M5]&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;See relevant solution&lt;/STRONG&gt;: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/using-parameter-values-in-visual-filter/m-p/294517" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/Desktop/using-parameter-values-in-visual-filter/m-p/294517&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can also learn more about &lt;STRONG&gt;field parameters&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Babatunde Dallas&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 15:48:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3469270#M132441</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2023-10-10T15:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: call two different measure parameter in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3470735#M132517</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446607" data-lia-user-login="DallasBaba" class="lia-mention lia-mention-user"&gt;DallasBaba&lt;/a&gt;&amp;nbsp; may be I have not explained it correctly. Basically I have created Field parameter on front end. Parameter1 contains 3 measures M1 (sum(M1)), M2 and M3 respectively. when I select Group1, I want to show values of M1, M2 &amp;amp; M3 in the report. So report would look like below&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Dimension1&lt;/TD&gt;&lt;TD&gt;M1&lt;/TD&gt;&lt;TD&gt;M2&lt;/TD&gt;&lt;TD&gt;M3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly, if I select Group2, In same table visual, I would like to see values of&amp;nbsp; measures M4 &amp;amp; M5.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 09:05:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3470735#M132517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-11T09:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: call two different measure parameter in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3471869#M132581</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;you can accomplish this by creating a measure that switches between Parameter1 and Parameter2 based on the slicer selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a measure that selects the appropriate set of measures based on the slicer value:&amp;nbsp;&lt;BR /&gt;Dynamic Measures =&lt;BR /&gt;VAR SelectedGroup = SELECTEDVALUE('Table'[Group])&lt;BR /&gt;RETURN&lt;BR /&gt;SWITCH(&lt;BR /&gt;SelectedGroup,&lt;BR /&gt;"Group1", [Parameter1.M1] + [Parameter1.M2] + [Parameter1.M3],&lt;BR /&gt;"Group2", [Parameter2.M4] + [Parameter2.M5],&lt;BR /&gt;BLANK()&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then create a table visual in your report with "Dimension1" as a dimension and use the "Dynamic Measures" measure as values.&lt;BR /&gt;When you select "Group1" in the slicer, it will display the sum of M1, M2, and M3.&lt;BR /&gt;When you select "Group2," it will show the sum of M4 and M5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table visual should look like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me know if this works&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 17:50:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3471869#M132581</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2023-10-11T17:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: call two different measure parameter in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3472672#M132612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to create one parameter with all measure names and then add a Group column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Group = 
IF(Parameter[Parameter] in {"M1","M2","M3"},"Group1","Group2")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 06:34:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/call-two-different-measure-parameter-in-DAX/m-p/3472672#M132612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-12T06:34:57Z</dc:date>
    </item>
  </channel>
</rss>

