<?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 Field Parameters, NOT Calculation Groups. SELECTEDMEASURE() functionality without Tabular Editor in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-NOT-Calculation-Groups-SELECTEDMEASURE/m-p/3372690#M126951</link>
    <description>&lt;P&gt;&lt;STRONG&gt;FIELD PARAMETERS or CALCULATION GROUPS?&lt;/STRONG&gt;&lt;BR /&gt;Both are used to dynamicaly change fields/measures in your report/visual.&lt;BR /&gt;I would recommend to start with Field Parameters, as far as:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;It's more modern feature.&lt;/LI&gt;&lt;LI&gt;Covers Calculation Groups functionality.&lt;/LI&gt;&lt;LI&gt;Don't need external tools (like Tabular Editor).&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;You could use it together with over fields/measures.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Supports &amp;nbsp;individual values columns sort in matrix (&lt;LI-MESSAGE title="How to sort values in pivoted columns" uid="3359806" url="https://community.fabric.microsoft.com/t5/Desktop/How-to-sort-values-in-pivoted-columns/m-p/3359806#U3359806" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;)&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My favourite tutorial video for this topic by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="71" data-lia-user-login="AlbertoFerrari" class="lia-mention lia-mention-user"&gt;AlbertoFerrari&lt;/a&gt;&amp;nbsp;: &lt;A href="https://www.youtube.com/watch?v=TufnsAxJsjs&amp;amp;ab_channel=SQLBI" target="_self"&gt;Fields parameters in Power BI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Just one &lt;STRONG&gt;problem&lt;/STRONG&gt;: how to pass selected measure as variable for another measure?&lt;BR /&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;:&lt;BR /&gt;I have two almost identical measures:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;YTD Sales = CALCULATE([Sales], DATESYTD('Calendar'[DateKey]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;YTD Quantity = CALCULATE([Quantity], DATESYTD('Calendar'[DateKey]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want to reduce amount of measures and use something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;YTD = CALCULATE([Melected], DATESYTD('Calendar'[DateKey]))
//[Melected] - Measure sELECTED 
//           - measure that could be equal [Sales] or [Quantity] depending on our slicer single choice/election&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is amazing video by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="2610" data-lia-user-login="pleblanc" class="lia-mention lia-mention-user"&gt;pleblanc&lt;/a&gt;&amp;nbsp; dedicated to this topic:&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=vlnx7QUVYME&amp;amp;ab_channel=GuyinaCube" target="_self"&gt;REDUCE the # of measures with Calculation Groups In Power BI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;: is it possible to get SELECTEDMEASURE() functionality without Tabular Editor?&lt;BR /&gt;Answer: &lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;BR /&gt;Details: Desired functionality:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;STRONG&gt;How To&lt;/STRONG&gt;, a 5-step guide (the initial two steps being the focus of this article)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) Let's create &lt;STRONG&gt;_MeasureSelected&lt;/STRONG&gt; table and use it's &lt;STRONG&gt;[Melected Name]&lt;/STRONG&gt; column as single choice slicer in our report:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Create [&lt;STRONG&gt;Melected&lt;/STRONG&gt;] measure, that will be equal [Sales] or [Quantity] based on [Melected Name] slicer single choice:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Create [Melected] dependent measures like:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Create &lt;STRONG&gt;Field Parameter&lt;/STRONG&gt; with list of measures:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) Create matrix and Enjoy 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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. Source file (&lt;A href="https://github.com/DenisSipchenko/Power-BI/blob/c787d07c4d3f84693c2511219cc4428f68457f5a/Questions/SELECTEDMEASURE%20without%20Tabular%20Editor%20Contoso%20Sales%20Sample%20Cutted.pbix" target="_self"&gt;Download&lt;/A&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 13:05:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-15T13:05:35Z</dc:date>
    <item>
      <title>Field Parameters, NOT Calculation Groups. SELECTEDMEASURE() functionality without Tabular Editor</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-NOT-Calculation-Groups-SELECTEDMEASURE/m-p/3372690#M126951</link>
      <description>&lt;P&gt;&lt;STRONG&gt;FIELD PARAMETERS or CALCULATION GROUPS?&lt;/STRONG&gt;&lt;BR /&gt;Both are used to dynamicaly change fields/measures in your report/visual.&lt;BR /&gt;I would recommend to start with Field Parameters, as far as:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;It's more modern feature.&lt;/LI&gt;&lt;LI&gt;Covers Calculation Groups functionality.&lt;/LI&gt;&lt;LI&gt;Don't need external tools (like Tabular Editor).&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;You could use it together with over fields/measures.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Supports &amp;nbsp;individual values columns sort in matrix (&lt;LI-MESSAGE title="How to sort values in pivoted columns" uid="3359806" url="https://community.fabric.microsoft.com/t5/Desktop/How-to-sort-values-in-pivoted-columns/m-p/3359806#U3359806" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;)&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My favourite tutorial video for this topic by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="71" data-lia-user-login="AlbertoFerrari" class="lia-mention lia-mention-user"&gt;AlbertoFerrari&lt;/a&gt;&amp;nbsp;: &lt;A href="https://www.youtube.com/watch?v=TufnsAxJsjs&amp;amp;ab_channel=SQLBI" target="_self"&gt;Fields parameters in Power BI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Just one &lt;STRONG&gt;problem&lt;/STRONG&gt;: how to pass selected measure as variable for another measure?&lt;BR /&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;:&lt;BR /&gt;I have two almost identical measures:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;YTD Sales = CALCULATE([Sales], DATESYTD('Calendar'[DateKey]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;YTD Quantity = CALCULATE([Quantity], DATESYTD('Calendar'[DateKey]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want to reduce amount of measures and use something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;YTD = CALCULATE([Melected], DATESYTD('Calendar'[DateKey]))
//[Melected] - Measure sELECTED 
//           - measure that could be equal [Sales] or [Quantity] depending on our slicer single choice/election&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is amazing video by &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="2610" data-lia-user-login="pleblanc" class="lia-mention lia-mention-user"&gt;pleblanc&lt;/a&gt;&amp;nbsp; dedicated to this topic:&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=vlnx7QUVYME&amp;amp;ab_channel=GuyinaCube" target="_self"&gt;REDUCE the # of measures with Calculation Groups In Power BI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;: is it possible to get SELECTEDMEASURE() functionality without Tabular Editor?&lt;BR /&gt;Answer: &lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;BR /&gt;Details: Desired functionality:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;&lt;STRONG&gt;How To&lt;/STRONG&gt;, a 5-step guide (the initial two steps being the focus of this article)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) Let's create &lt;STRONG&gt;_MeasureSelected&lt;/STRONG&gt; table and use it's &lt;STRONG&gt;[Melected Name]&lt;/STRONG&gt; column as single choice slicer in our report:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Create [&lt;STRONG&gt;Melected&lt;/STRONG&gt;] measure, that will be equal [Sales] or [Quantity] based on [Melected Name] slicer single choice:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Create [Melected] dependent measures like:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Create &lt;STRONG&gt;Field Parameter&lt;/STRONG&gt; with list of measures:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) Create matrix and Enjoy 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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. Source file (&lt;A href="https://github.com/DenisSipchenko/Power-BI/blob/c787d07c4d3f84693c2511219cc4428f68457f5a/Questions/SELECTEDMEASURE%20without%20Tabular%20Editor%20Contoso%20Sales%20Sample%20Cutted.pbix" target="_self"&gt;Download&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 13:05:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Field-Parameters-NOT-Calculation-Groups-SELECTEDMEASURE/m-p/3372690#M126951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-15T13:05:35Z</dc:date>
    </item>
  </channel>
</rss>

