<?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, single chart based on 3 measures in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Calculation-single-chart-based-on-3-measures/m-p/298645#M8785</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/41392"&gt;@sana_sagheer&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have this issue, I am having a Reveneue KPI thats comprised of 3 components(each is a separate measure). I want my bar chart to show the revenue as total in first layer of hierarchy. and want to display each component revenue at subsequent node of hierarchy.&amp;nbsp;&lt;BR /&gt;like node 0 -&amp;gt; total revenue&lt;BR /&gt;node 1-&amp;gt; component 1&amp;nbsp; revenue&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;node 2-&amp;gt; component&amp;nbsp;2 &amp;nbsp;revenue&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;node 3-&amp;gt; component&amp;nbsp;3 &amp;nbsp;revenue&lt;BR /&gt;&lt;BR /&gt;Please guide how can we do it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;BR /&gt;Sana&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/41392"&gt;@sana_sagheer&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Maybe you can create a tricky measure to detect the hierarchy level and then show different measures accordingly. Just replace 1,2,3,4 with the measures in your case. See more in the attached pbix file.&lt;/P&gt;
&lt;PRE&gt;Measure = 
SWITCH (
    TRUE (),
    HASONEVALUE ( yourTable[node0] ) &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node1] ) )
        &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node2] ) )
        &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node3] ) ), 1,  // in hierachy level 1
    HASONEVALUE ( yourTable[node0] ) &amp;amp;&amp;amp; HASONEVALUE ( yourTable[node1] )
        &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node2] ) )
        &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node3] ) ), 2,  // in hierarchy level 2
    HASONEVALUE ( yourTable[node0] ) &amp;amp;&amp;amp; HASONEVALUE ( yourTable[node1] )
        &amp;amp;&amp;amp; HASONEVALUE ( yourTable[node2] )
        &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node3] ) ), 3,  // in hierarchy level 3
    4 //in hierarcy level 4
)&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drilldown.gif" style="width: 503px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/68469i27CA9FB3A7A40898/image-size/large?v=v2&amp;amp;px=999" role="button" title="drilldown.gif" alt="drilldown.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 06:36:05 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-11-08T06:36:05Z</dc:date>
    <item>
      <title>Calculation, single chart based on 3 measures</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculation-single-chart-based-on-3-measures/m-p/298033#M8766</link>
      <description>&lt;P&gt;I have this issue, I am having a Reveneue KPI thats comprised of 3 components(each is a separate measure). I want my bar chart to show the revenue as total in first layer of hierarchy. and want to display each component revenue at subsequent node of hierarchy.&amp;nbsp;&lt;BR /&gt;like node 0 -&amp;gt; total revenue&lt;BR /&gt;node 1-&amp;gt; component 1&amp;nbsp; revenue&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;node 2-&amp;gt; component&amp;nbsp;2 &amp;nbsp;revenue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;node 3-&amp;gt; component&amp;nbsp;3 &amp;nbsp;revenue&lt;BR /&gt;&lt;BR /&gt;Please guide how can we do it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;BR /&gt;Sana&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 10:47:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculation-single-chart-based-on-3-measures/m-p/298033#M8766</guid>
      <dc:creator>sana_sagheer</dc:creator>
      <dc:date>2017-11-07T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation, single chart based on 3 measures</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculation-single-chart-based-on-3-measures/m-p/298197#M8772</link>
      <description>&lt;P&gt;Hmm, that's an interesting problem. I am not aware of a way to build a hierarchy with measures so interested in seeing if someone has an interesting solution to this. You could definitely do it in two different visualizations.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 14:26:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculation-single-chart-based-on-3-measures/m-p/298197#M8772</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2017-11-07T14:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation, single chart based on 3 measures</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculation-single-chart-based-on-3-measures/m-p/298645#M8785</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/41392"&gt;@sana_sagheer&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have this issue, I am having a Reveneue KPI thats comprised of 3 components(each is a separate measure). I want my bar chart to show the revenue as total in first layer of hierarchy. and want to display each component revenue at subsequent node of hierarchy.&amp;nbsp;&lt;BR /&gt;like node 0 -&amp;gt; total revenue&lt;BR /&gt;node 1-&amp;gt; component 1&amp;nbsp; revenue&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;node 2-&amp;gt; component&amp;nbsp;2 &amp;nbsp;revenue&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;node 3-&amp;gt; component&amp;nbsp;3 &amp;nbsp;revenue&lt;BR /&gt;&lt;BR /&gt;Please guide how can we do it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;BR /&gt;Sana&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/41392"&gt;@sana_sagheer&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Maybe you can create a tricky measure to detect the hierarchy level and then show different measures accordingly. Just replace 1,2,3,4 with the measures in your case. See more in the attached pbix file.&lt;/P&gt;
&lt;PRE&gt;Measure = 
SWITCH (
    TRUE (),
    HASONEVALUE ( yourTable[node0] ) &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node1] ) )
        &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node2] ) )
        &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node3] ) ), 1,  // in hierachy level 1
    HASONEVALUE ( yourTable[node0] ) &amp;amp;&amp;amp; HASONEVALUE ( yourTable[node1] )
        &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node2] ) )
        &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node3] ) ), 2,  // in hierarchy level 2
    HASONEVALUE ( yourTable[node0] ) &amp;amp;&amp;amp; HASONEVALUE ( yourTable[node1] )
        &amp;amp;&amp;amp; HASONEVALUE ( yourTable[node2] )
        &amp;amp;&amp;amp; NOT ( ISFILTERED ( yourTable[node3] ) ), 3,  // in hierarchy level 3
    4 //in hierarcy level 4
)&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drilldown.gif" style="width: 503px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/68469i27CA9FB3A7A40898/image-size/large?v=v2&amp;amp;px=999" role="button" title="drilldown.gif" alt="drilldown.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 06:36:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculation-single-chart-based-on-3-measures/m-p/298645#M8785</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-11-08T06:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation, single chart based on 3 measures</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Calculation-single-chart-based-on-3-measures/m-p/298801#M8799</link>
      <description>&lt;P&gt;Thanks everyone, we acheived the solution using Switch function and added component type table as selector for selecting one component type or the other.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 09:32:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Calculation-single-chart-based-on-3-measures/m-p/298801#M8799</guid>
      <dc:creator>sana_sagheer</dc:creator>
      <dc:date>2017-11-08T09:32:18Z</dc:date>
    </item>
  </channel>
</rss>

