<?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 Changing metric dynamically in chart. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Changing-metric-dynamically-in-chart/m-p/160201#M5387</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have two tables. One is fact table which contains different metrics(Budget, SalesAmount) and another one is the static table which has a single column of metric names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here comes &amp;nbsp;requirement,&lt;/P&gt;&lt;P&gt;1) Need to add slicer which contains metric names.&lt;/P&gt;&lt;P&gt;2) Bar chart which metric. By default, it will show the data for the budget. We should have the capability to change bar chart metric based on the slicer.&lt;/P&gt;&lt;P&gt;Please provide your best possible solution for this.&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2017 06:49:14 GMT</pubDate>
    <dc:creator>Sunkari</dc:creator>
    <dc:date>2017-04-18T06:49:14Z</dc:date>
    <item>
      <title>Changing metric dynamically in chart.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Changing-metric-dynamically-in-chart/m-p/160201#M5387</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have two tables. One is fact table which contains different metrics(Budget, SalesAmount) and another one is the static table which has a single column of metric names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here comes &amp;nbsp;requirement,&lt;/P&gt;&lt;P&gt;1) Need to add slicer which contains metric names.&lt;/P&gt;&lt;P&gt;2) Bar chart which metric. By default, it will show the data for the budget. We should have the capability to change bar chart metric based on the slicer.&lt;/P&gt;&lt;P&gt;Please provide your best possible solution for this.&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 06:49:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Changing-metric-dynamically-in-chart/m-p/160201#M5387</guid>
      <dc:creator>Sunkari</dc:creator>
      <dc:date>2017-04-18T06:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Changing metric dynamically in chart.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Changing-metric-dynamically-in-chart/m-p/160211#M5389</link>
      <description>&lt;P&gt;Parameter table is one approach I am aware of it. &lt;A href="http://www.daxpatterns.com/parameter-table/" target="_blank"&gt;http://www.daxpatterns.com/parameter-table/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 06:59:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Changing-metric-dynamically-in-chart/m-p/160211#M5389</guid>
      <dc:creator>Sunkari</dc:creator>
      <dc:date>2017-04-18T06:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing metric dynamically in chart.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Changing-metric-dynamically-in-chart/m-p/161008#M5416</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/9025"&gt;@Sunkari&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have two tables. One is fact table which contains different metrics(Budget, SalesAmount) and another one is the static table which has a single column of metric names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here comes &amp;nbsp;requirement,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1) Need to add slicer which contains metric names.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2) Bar chart which metric. By default, it will show the data for the budget. We should have the capability to change bar chart metric based on the slicer.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please provide your best possible solution for this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think a workaround can be using a measure like below. The table Metrics is the table containing measure names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Measure =
IF (
    ISFILTERED ( Metrics[Name] ),
    SWITCH (
        TRUE (),
        LASTNONBLANK ( Metrics[Name], "" ) = "Measure1", [Measure1],
        LASTNONBLANK ( Metrics[Name], "" ) = "Measure2", [Measure2],
        [Other measure]
    ),
    [A default measure]
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 07:42:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Changing-metric-dynamically-in-chart/m-p/161008#M5416</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-04-19T07:42:34Z</dc:date>
    </item>
  </channel>
</rss>

