<?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: Dynamically changing measures with in a line chart in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785696#M4292</link>
    <description>&lt;P&gt;Yeah, so i need show the metric as whole which consists of those 3 measures as shown above&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2019 12:30:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-06T12:30:49Z</dc:date>
    <item>
      <title>Dynamically changing measures with in a line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/784979#M4273</link>
      <description>&lt;P&gt;I have a handful of metrics, each of which have 3 Measures, current year, prior year and target.&lt;/P&gt;&lt;P&gt;so:&lt;/P&gt;&lt;P&gt;Metrics 1: CY_M1, PY_M1, Target_M1&lt;/P&gt;&lt;P&gt;Metrics 2: CY_M2, PY_M2, Target_M2&lt;/P&gt;&lt;P&gt;Metrics 3: CY_M3, PY_M3, Target_M3&lt;/P&gt;&lt;P&gt;Metrics 4: CY_M4, PY_M4, Target_M4&lt;/P&gt;&lt;P&gt;Metrics 5: CY_M5, PY_M5, Target_M5&lt;/P&gt;&lt;P&gt;so what I have are a total of 15 measures.&lt;/P&gt;&lt;P&gt;What we need from a business perspective is to have a multiple line chart that shows all the measures for a metric dynamically, with the metric being shown having the ability to be changed by a slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've tried a few different methods such as turning the measures into variables with in a new measure that would return all 3 variables, but this didn't work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried similar llogic but with a switch statement.&lt;/P&gt;&lt;P&gt;the problem with both is it only returned the first variable, not all three.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be very much appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 19:03:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/784979#M4273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-05T19:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing measures with in a line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785545#M4284</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is a strategy that migh work for you:&lt;BR /&gt;&lt;BR /&gt;-Create a new table with only the name of your measures(does not have to be the name of the measure, but might be easier for your users). So table name = SelectMeasures, and name of the column = Measure.&lt;/P&gt;&lt;P&gt;-Create a new measure like this:&lt;/P&gt;&lt;PRE&gt;select measure =
SWITCH (
    TRUE ();
    SELECTEDVALUE ( SelectMeasures[Measure] ) = [your measure name 1];
    SELECTEDVALUE ( SelectMeasures[Measure] ) = [your measure name 2];
    .
    .
    .
    .
    .
    BLANK ()
)

 &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;-Add the Measure-column in the legend field of a line chart.&lt;/P&gt;&lt;P&gt;-Add the measure [select measure] as value of the line chart.&lt;/P&gt;&lt;P&gt;-Add year/date to axis of the line chart.&lt;BR /&gt;-Create a slicer of the Measure-column.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 09:28:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785545#M4284</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2019-09-06T09:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing measures with in a line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785685#M4289</link>
      <description>&lt;P&gt;Hey thanks for the responce,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;the problem with this is the same as the switch i already tried, with out multi selecting the slicer you can't put multiple measures onto the chart and all though that may seem easy enough for IT people unfortuantly that doesnt meet the business specs required.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;What i ended up doing is kind of a workaround with bookmarks and putting different&amp;nbsp; chart on different pages that all look the same so it appears like our clicking a button and only the chart is changing as far as the user is concerned.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 12:21:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785685#M4289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-06T12:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing measures with in a line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785692#M4290</link>
      <description>&lt;P&gt;so what you want to do is show measures on groups of CY,PY and Targets?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 12:27:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785692#M4290</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2019-09-06T12:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing measures with in a line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785696#M4292</link>
      <description>&lt;P&gt;Yeah, so i need show the metric as whole which consists of those 3 measures as shown above&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 12:30:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785696#M4292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-06T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing measures with in a line chart</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785741#M4296</link>
      <description>&lt;P&gt;ah, my bad, I should have understood that from you first post.&lt;BR /&gt;&lt;BR /&gt;But if you use the strategy I suggested, and add new column, call it MeasureGroup, so the measures CY1, PY1 and T1 is group 1 and so on. Use this new column as values for a slicer. Perhaps check out the ChicletSlicer from Marketplace, which will give you more of a button-feel(just remember to turn off Multiple selection)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 13:33:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-changing-measures-with-in-a-line-chart/m-p/785741#M4296</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2019-09-06T13:33:18Z</dc:date>
    </item>
  </channel>
</rss>

