<?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: Compile MeasureName by name parts and use this dynamicaly measure(name) for calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2340893#M59080</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;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The requirement is to be able to switch the previous time selection between "previous year" and "previous year day of week".&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At the end the user should be able to tick a switch and see eighter the upper- or lower variant of comparision.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Based on what I got above, the calculation group would be a good choice.&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Refer:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/introducing-calculation-groups/" target="_self"&gt;Introducing Calculation Groups&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can also use the Switch function with slicers&lt;BR /&gt;e.g.&lt;/P&gt;
&lt;LI-CODE lang="ruby"&gt;Switch(
True(),
SelectedValue="PY",[O_VOL_ACT_PY],
SelectedValue="PYTD",[0_VOL_ACT_PYTD]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Zeon Zheng&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 02:21:22 GMT</pubDate>
    <dc:creator>v-angzheng-msft</dc:creator>
    <dc:date>2022-02-16T02:21:22Z</dc:date>
    <item>
      <title>Compile MeasureName by name parts and use this dynamicaly measure(name) for calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2330870#M58570</link>
      <description>&lt;P&gt;I have en existing measure called [O_VOL_ACT] and from this measure I derived several other measures like previous year and many others (Time Intelligent)..:&lt;BR /&gt;[&lt;STRONG&gt;&lt;FONT color="#00FF00"&gt;O_VOL_ACT&lt;/FONT&gt;&lt;/STRONG&gt;]&lt;/P&gt;&lt;P&gt;[0_VOL_ACT_&lt;FONT color="#FF0000"&gt;PYTD&lt;/FONT&gt;]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= Previous Year To Date&lt;/P&gt;&lt;P&gt;[O_VOL_ACT_&lt;FONT color="#FF0000"&gt;PY&lt;/FONT&gt;]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= Previous Year&lt;/P&gt;&lt;P&gt;[O_VOL_ACT_PY_&lt;FONT color="#FF0000"&gt;DEV&lt;/FONT&gt;]&amp;nbsp; &amp;nbsp;= Deviation between Previous- Actual Year&lt;/P&gt;&lt;P&gt;[O_VOL_ACT_PY_&lt;FONT color="#FF0000"&gt;DOW&lt;/FONT&gt;] = Previous Year Day of Week&lt;/P&gt;&lt;P&gt;[O_VOL_ACT_&lt;FONT color="#FF0000"&gt;YTD&lt;/FONT&gt;]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= Actual Year To Date&lt;/P&gt;&lt;P&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;&lt;BR /&gt;&lt;BR /&gt;Now, what I try to archiv is, that I can compile the measurename by doint something like concatenate the base measure&amp;nbsp;[&lt;FONT color="#00FF00"&gt;O_VOL_ACT&lt;/FONT&gt;] with any suffix of the derived measures like &lt;FONT color="#FF0000"&gt;_PY.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;As a Result I want to get something like [&lt;FONT color="#00FF00"&gt;O_VOL_ACT&lt;/FONT&gt;&lt;/FONT&gt;_PY&lt;FONT color="#000000"&gt;] which I could use for example in a matrix.&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on outside criteria (IF/ELSE) suffix _PY or _PY_DOW must come to action.&lt;/P&gt;&lt;P&gt;Of course, concatenate doesn't work! Any other ideas how to solve this issue ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;&lt;BR /&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&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>Thu, 10 Feb 2022 12:52:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2330870#M58570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T12:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compile MeasureName by name parts and use this dynamicaly measure(name) for calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2330899#M58572</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A bit unclear of the reason for such measure but perhaps Calculated Groups could work&amp;nbsp;&lt;BR /&gt;e.g. final solution would give user a filter to choose what you they want to see PYTD, PY, etc. and depending on that you would give result&amp;nbsp;&lt;BR /&gt;Calculated groups could have two measures, one to show text: using SWITCH, if SELECTEDMEASURE = PY then "PY" and etc.&lt;BR /&gt;and another to show correct value.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/using-calculation-item-in-another-calculation-items-Time/m-p/2320060" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/using-calculation-item-in-another-calculation-items-Time/m-p/2320060&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Extract-name-calculation-item-from-calculation-group/m-p/1650272#M661273" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Extract-name-calculation-item-from-calculation-group/m-p/1650272#M661273&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 13:17:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2330899#M58572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T13:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compile MeasureName by name parts and use this dynamicaly measure(name) for calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2330914#M58573</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Whwn you say "&lt;SPAN&gt;&lt;EM&gt;Based on outside criteria (IF/ELSE) suffix _PY or _PY_DOW must come to action.&lt;/EM&gt;" what do you mean by "&lt;EM&gt;outside&lt;/EM&gt;"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 13:23:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2330914#M58573</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-10T13:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compile MeasureName by name parts and use this dynamicaly measure(name) for calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2330935#M58575</link>
      <description>&lt;P&gt;The requirement is to be able to switch the previous time selection between "previous year" and "previous year day of week".&amp;nbsp;&lt;BR /&gt;At the end the user should be able to tick a switch and see eighter the upper- or lower variant of comparision.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calc-Group wont work.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 13:37:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2330935#M58575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T13:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compile MeasureName by name parts and use this dynamicaly measure(name) for calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2331327#M58593</link>
      <description>&lt;P&gt;You can achieve that with calculated groups.&lt;BR /&gt;I would probably do calculated groups to select 2nd measure to compare with actual and then use visual Column Chart with Relative Variance&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;So in this proposed solution you have actual added in visual and then another measure that changes value based on users selection.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:56:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2331327#M58593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-10T15:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compile MeasureName by name parts and use this dynamicaly measure(name) for calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2340893#M59080</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;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The requirement is to be able to switch the previous time selection between "previous year" and "previous year day of week".&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At the end the user should be able to tick a switch and see eighter the upper- or lower variant of comparision.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Based on what I got above, the calculation group would be a good choice.&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Refer:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/introducing-calculation-groups/" target="_self"&gt;Introducing Calculation Groups&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can also use the Switch function with slicers&lt;BR /&gt;e.g.&lt;/P&gt;
&lt;LI-CODE lang="ruby"&gt;Switch(
True(),
SelectedValue="PY",[O_VOL_ACT_PY],
SelectedValue="PYTD",[0_VOL_ACT_PYTD]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Zeon Zheng&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 02:21:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2340893#M59080</guid>
      <dc:creator>v-angzheng-msft</dc:creator>
      <dc:date>2022-02-16T02:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Compile MeasureName by name parts and use this dynamicaly measure(name) for calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2351349#M59700</link>
      <description>&lt;P&gt;I could solve my problem with Calculation Groups, so you where right &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; !!&lt;BR /&gt;Thanks for the hint.&lt;/P&gt;&lt;P&gt;I created an overview pic which more or less should explain my created solution.&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;</description>
      <pubDate>Mon, 21 Feb 2022 14:27:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2351349#M59700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-21T14:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compile MeasureName by name parts and use this dynamicaly measure(name) for calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2351357#M59702</link>
      <description>&lt;P&gt;I already solved my issue. But your solution with the "Switch" and "SelectedValue" is great. Will add that to my list of (best) code snippets :-).&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 14:30:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compile-MeasureName-by-name-parts-and-use-this-dynamicaly/m-p/2351357#M59702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-21T14:30:19Z</dc:date>
    </item>
  </channel>
</rss>

