<?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: Calculation Groups- More Than One Measure For Each Calculation Item in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227697#M53102</link>
    <description>&lt;P&gt;It worked! You're awesome!&lt;/P&gt;&lt;P&gt;I have created another Calculation Group with 2 measures: Value and Target. I gave it precedence over the original group.&lt;/P&gt;&lt;P&gt;I have changed the calculated items this way- for example, Reviews:&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;IF&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt;SELECTEDMEASURENAME&lt;/FONT&gt;&lt;FONT&gt;()&lt;/FONT&gt;&lt;FONT&gt;=&lt;/FONT&gt;&lt;FONT&gt;"Target"&lt;/FONT&gt;&lt;FONT&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT&gt;[An expression that uses SELECTEDVALUE('MI Metric Selection'[Metric]) to get the Revies Target}&lt;/FONT&gt;&lt;FONT&gt;,&lt;BR /&gt;[Reviews]&lt;/FONT&gt;&lt;FONT&gt;)&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Finally, in the visual I shared, I now plot the Value from this new calculation group (here it would return [Reviews]) and the Target. Perfect!&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2021 12:12:50 GMT</pubDate>
    <dc:creator>rbriga</dc:creator>
    <dc:date>2021-12-08T12:12:50Z</dc:date>
    <item>
      <title>Calculation Groups- More Than One Measure For Each Calculation Item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227375#M53078</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have created a claculation group in which each calculation item is a different existing measure.&lt;/P&gt;&lt;P&gt;This allows the user to change the measure a visual shows, and it works great.&lt;/P&gt;&lt;P&gt;The ca&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now I want to add a second measure- a target.&lt;/P&gt;&lt;P&gt;I was hoping to to use SELECTEDVALUE('Metric Selection'[Metric]) to pick a target,&lt;/P&gt;&lt;P&gt;but any measure referencing&amp;nbsp;'Metric Selection'[Metric] just returns the underlying measure in the selected calculation item, for example- Reviews.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any DAX expression that will return the&amp;nbsp;&lt;STRONG&gt;name&lt;/STRONG&gt; of the selected calculation item?&lt;/P&gt;&lt;P&gt;Thank you.&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 09:49:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227375#M53078</guid>
      <dc:creator>rbriga</dc:creator>
      <dc:date>2021-12-08T09:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Groups- More Than One Measure For Each Calculation Item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227441#M53081</link>
      <description>&lt;P&gt;Hi (by the way I love your report theme),&lt;BR /&gt;&lt;BR /&gt;I am pretty sure calculation groups don't have anything like SELECTEDMEASURENAME, but as a workaround you could just use &lt;STRONG&gt;MAX('MI Metric Selection'[Name])&amp;nbsp;&lt;/STRONG&gt;In you example it should return "Reviews".&lt;BR /&gt;&lt;BR /&gt;I hope this helps to solce your issue and if it does consider accepting this as a solution!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 10:07:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227441#M53081</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2021-12-08T10:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Groups- More Than One Measure For Each Calculation Item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227611#M53091</link>
      <description>&lt;P&gt;Thank you- it's rather close, but not there yet.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MAX('MI Metric Selection'[Metric])&amp;nbsp;&lt;/STRONG&gt;return a metric name when nothing is selected from the calculation group (e.g. disabling the filtering from "edit interactions"), but when a calculation item is chosen, this measure return the chosen metric's resault (a number) rather than the name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't overcome this sticky, tenacious behavior that any measure that's affected by a calculation group returns it's value, but not name.&lt;/P&gt;&lt;P&gt;Solutions that work on DAX Studio don't work in the roeport itsels.&lt;/P&gt;&lt;P&gt;Even the Measure&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Twelve = &lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Returns the chosen calculated item when plotted together.&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Dec 2021 11:23:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227611#M53091</guid>
      <dc:creator>rbriga</dc:creator>
      <dc:date>2021-12-08T11:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Groups- More Than One Measure For Each Calculation Item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227630#M53096</link>
      <description>&lt;P&gt;I think this can be avoided by using if within the calculation group.&lt;BR /&gt;So if you include this logic in the calculation items it should work:&lt;BR /&gt;IF(selectedmeasurename()="Name of calc grp",selectedmeasure(), Your original calculation item logic)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Alternative option would be to make another calculation group which would have the logic I described above and assign its precedence to be before the original calculation group.&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;</description>
      <pubDate>Wed, 08 Dec 2021 11:40:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227630#M53096</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2021-12-08T11:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Groups- More Than One Measure For Each Calculation Item</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227697#M53102</link>
      <description>&lt;P&gt;It worked! You're awesome!&lt;/P&gt;&lt;P&gt;I have created another Calculation Group with 2 measures: Value and Target. I gave it precedence over the original group.&lt;/P&gt;&lt;P&gt;I have changed the calculated items this way- for example, Reviews:&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;IF&lt;/FONT&gt;&lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt;SELECTEDMEASURENAME&lt;/FONT&gt;&lt;FONT&gt;()&lt;/FONT&gt;&lt;FONT&gt;=&lt;/FONT&gt;&lt;FONT&gt;"Target"&lt;/FONT&gt;&lt;FONT&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT&gt;[An expression that uses SELECTEDVALUE('MI Metric Selection'[Metric]) to get the Revies Target}&lt;/FONT&gt;&lt;FONT&gt;,&lt;BR /&gt;[Reviews]&lt;/FONT&gt;&lt;FONT&gt;)&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Finally, in the visual I shared, I now plot the Value from this new calculation group (here it would return [Reviews]) and the Target. Perfect!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 12:12:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Groups-More-Than-One-Measure-For-Each-Calculation/m-p/2227697#M53102</guid>
      <dc:creator>rbriga</dc:creator>
      <dc:date>2021-12-08T12:12:50Z</dc:date>
    </item>
  </channel>
</rss>

