<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Strategic colouring in Power BI – Part 1: Comparing different metrics across a common dimension	</title>
	<atom:link href="https://capstoneanalytics.com.au/strategic-colouring-in-power-bi-part-1-comparing-different-metrics-across-a-common-dimension/feed/" rel="self" type="application/rss+xml" />
	<link>https://capstoneanalytics.com.au/strategic-colouring-in-power-bi-part-1-comparing-different-metrics-across-a-common-dimension/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=strategic-colouring-in-power-bi-part-1-comparing-different-metrics-across-a-common-dimension</link>
	<description>Analytics Simplified</description>
	<lastBuildDate>Sun, 14 Jun 2020 03:52:41 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Himanshu Shisodia		</title>
		<link>https://capstoneanalytics.com.au/strategic-colouring-in-power-bi-part-1-comparing-different-metrics-across-a-common-dimension/comment-page-1/#comment-2</link>

		<dc:creator><![CDATA[Himanshu Shisodia]]></dc:creator>
		<pubDate>Wed, 25 Mar 2020 16:17:36 +0000</pubDate>
		<guid isPermaLink="false">https://capstoneanalytics.com.au/?p=2138#comment-2</guid>

					<description><![CDATA[Hi Abhijith,

Kudos to your effort, a great post !

I would appreciate if you can have a look to my query below. :)

I tried implementing your method on my own. In my scenario, I have one &quot;Transnational Table&quot; with [Debit Amount] &#038; [Credit Amount]. I have taken Dim_Date[Month Name] as a common attribute as it has data for 10 months.

Now as we go step wise, I created same measures:

Step 1- CreditAmount = SUM(&#039;Transactional_Data(2019)&#039;[ Credit Amount])
             DebitAmount = SUM(&#039;Transactional_Data(2019)&#039;[ Debit Amount])

            Plotted two clustered bar chart with the above measures and dragged 
            Dim_Date[Month Name] into the axis. Also, added average line.

Step 2- Created two Average measures like:

             Average_CreditAmt = CALCULATE(
AVERAGEX(
 SUMMARIZE(&#039;Transactional_Data(2019)&#039;,Dim_Date[Month Name],&quot;Credit&quot;,
  [CreditAmount]),
     [Credit]
),
       ALL(Dim_Date[Month Name]),
         NOT(ISBLANK(Dim_Date[Month Name]))
)

Average_DebitAmt = CALCULATE(
AVERAGEX(
 SUMMARIZE(&#039;Transactional_Data(2019)&#039;,Dim_Date[Month Name],&quot;Debit&quot;,
  [DebitAmount]),
     [Debit]
),
       ALL(Dim_Date[Month Name]),
         NOT(ISBLANK(Dim_Date[Month Name]))
)


Step 3- Created below measures for Conditional Formatting


DebitColor = 

VAR month= 
SELECTEDVALUE(MonthName[Month Name])
return  
IF(
    SELECTEDVALUE(Dim_Date[Month Name]) = month
    &#038;&#038; [DebitAmount]  [Average_DebitAmt] ,
        &quot;#003DFF&quot;,
        &quot;#E6E6E6&quot;
    )
)

Step 4- Created a table for slicer: MonthName = VALUES(&#039;Dim_Date&#039;[Month Name])

After implementing the above steps, I&#039;d few issues:

1. My slicer doesn&#039;t slice both the bar charts, do we need to create a relationship between the tables ?

2. In your video above, how come your Y-Axis is static and not getting filtered by the size filter ?

Utter confused.]]></description>
			<content:encoded><![CDATA[<p>Hi Abhijith,</p>
<p>Kudos to your effort, a great post !</p>
<p>I would appreciate if you can have a look to my query below. 🙂</p>
<p>I tried implementing your method on my own. In my scenario, I have one &#8220;Transnational Table&#8221; with [Debit Amount] &amp; [Credit Amount]. I have taken Dim_Date[Month Name] as a common attribute as it has data for 10 months.</p>
<p>Now as we go step wise, I created same measures:</p>
<p>Step 1- CreditAmount = SUM(&#8216;Transactional_Data(2019)'[ Credit Amount])<br />
             DebitAmount = SUM(&#8216;Transactional_Data(2019)'[ Debit Amount])</p>
<p>            Plotted two clustered bar chart with the above measures and dragged<br />
            Dim_Date[Month Name] into the axis. Also, added average line.</p>
<p>Step 2- Created two Average measures like:</p>
<p>             Average_CreditAmt = CALCULATE(<br />
AVERAGEX(<br />
 SUMMARIZE(&#8216;Transactional_Data(2019)&#8217;,Dim_Date[Month Name],&#8221;Credit&#8221;,<br />
  [CreditAmount]),<br />
     [Credit]<br />
),<br />
       ALL(Dim_Date[Month Name]),<br />
         NOT(ISBLANK(Dim_Date[Month Name]))<br />
)</p>
<p>Average_DebitAmt = CALCULATE(<br />
AVERAGEX(<br />
 SUMMARIZE(&#8216;Transactional_Data(2019)&#8217;,Dim_Date[Month Name],&#8221;Debit&#8221;,<br />
  [DebitAmount]),<br />
     [Debit]<br />
),<br />
       ALL(Dim_Date[Month Name]),<br />
         NOT(ISBLANK(Dim_Date[Month Name]))<br />
)</p>
<p>Step 3- Created below measures for Conditional Formatting</p>
<p>DebitColor = </p>
<p>VAR month=<br />
SELECTEDVALUE(MonthName[Month Name])<br />
return<br />
IF(<br />
    SELECTEDVALUE(Dim_Date[Month Name]) = month<br />
    &amp;&amp; [DebitAmount]  [Average_DebitAmt] ,<br />
        &#8220;#003DFF&#8221;,<br />
        &#8220;#E6E6E6&#8221;<br />
    )<br />
)</p>
<p>Step 4- Created a table for slicer: MonthName = VALUES(&#8216;Dim_Date'[Month Name])</p>
<p>After implementing the above steps, I&#8217;d few issues:</p>
<p>1. My slicer doesn&#8217;t slice both the bar charts, do we need to create a relationship between the tables ?</p>
<p>2. In your video above, how come your Y-Axis is static and not getting filtered by the size filter ?</p>
<p>Utter confused.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
