<?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 Conditional Color in Bar chart in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-Color-in-Bar-chart/m-p/2152515#M32562</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a field &lt;STRONG&gt;company name&lt;/STRONG&gt; from one table. And different field called &lt;STRONG&gt;sector&lt;/STRONG&gt; from different table.&lt;/P&gt;&lt;P&gt;This is the measure we are using in bar chart which is linked to Sector field.&lt;BR /&gt;Measure 4 =&lt;BR /&gt;CALCULATE(DISTINCTCOUNT( AnswerHistory_Benchmarking[POrganization]) , FILTER(AnswerHistory_Benchmarking, AnswerHistory_Benchmarking[POrganization] &amp;lt;&amp;gt; 6377&lt;BR /&gt;)&lt;BR /&gt;, FILTER(RR_Datapoint,RR_Datapoint[RR_ID]=1) )&lt;BR /&gt;If I select filter &lt;STRONG&gt;sector&lt;/STRONG&gt; values are changing accordingly.&lt;/P&gt;&lt;P&gt;And this is the conditional Color Measure we are using in bar chart=&lt;/P&gt;&lt;P&gt;VAR _SELECTCompanyID =&lt;BR /&gt;CALCULATE( SELECTEDVALUE(Company_DataIsland[POrgID] ), REMOVEFILTERS(Company_Info[Sector] ))-- same as REMOVEFILTERS ( 'Product'[Color] )&lt;BR /&gt;&lt;BR /&gt;VAR _VALUES= VALUES(AnswerHistory_Benchmarking[POrganization] )&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( _SELECTCompanyID IN _VALUES ,"#dc6900","#FFB500 ")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now If I select &lt;STRONG&gt;sector&lt;/STRONG&gt; filter bar colors should not change only values in the bar should change.&amp;nbsp; Color condition is based on company selection.&amp;nbsp;&lt;STRONG&gt;company name and&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;sector&lt;/STRONG&gt;&amp;nbsp; fields are not linked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 05:30:31 GMT</pubDate>
    <dc:creator>Kavya123</dc:creator>
    <dc:date>2021-10-25T05:30:31Z</dc:date>
    <item>
      <title>Conditional Color in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-Color-in-Bar-chart/m-p/2152515#M32562</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a field &lt;STRONG&gt;company name&lt;/STRONG&gt; from one table. And different field called &lt;STRONG&gt;sector&lt;/STRONG&gt; from different table.&lt;/P&gt;&lt;P&gt;This is the measure we are using in bar chart which is linked to Sector field.&lt;BR /&gt;Measure 4 =&lt;BR /&gt;CALCULATE(DISTINCTCOUNT( AnswerHistory_Benchmarking[POrganization]) , FILTER(AnswerHistory_Benchmarking, AnswerHistory_Benchmarking[POrganization] &amp;lt;&amp;gt; 6377&lt;BR /&gt;)&lt;BR /&gt;, FILTER(RR_Datapoint,RR_Datapoint[RR_ID]=1) )&lt;BR /&gt;If I select filter &lt;STRONG&gt;sector&lt;/STRONG&gt; values are changing accordingly.&lt;/P&gt;&lt;P&gt;And this is the conditional Color Measure we are using in bar chart=&lt;/P&gt;&lt;P&gt;VAR _SELECTCompanyID =&lt;BR /&gt;CALCULATE( SELECTEDVALUE(Company_DataIsland[POrgID] ), REMOVEFILTERS(Company_Info[Sector] ))-- same as REMOVEFILTERS ( 'Product'[Color] )&lt;BR /&gt;&lt;BR /&gt;VAR _VALUES= VALUES(AnswerHistory_Benchmarking[POrganization] )&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( _SELECTCompanyID IN _VALUES ,"#dc6900","#FFB500 ")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now If I select &lt;STRONG&gt;sector&lt;/STRONG&gt; filter bar colors should not change only values in the bar should change.&amp;nbsp; Color condition is based on company selection.&amp;nbsp;&lt;STRONG&gt;company name and&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;sector&lt;/STRONG&gt;&amp;nbsp; fields are not linked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 05:30:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Conditional-Color-in-Bar-chart/m-p/2152515#M32562</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2021-10-25T05:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Color in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-Color-in-Bar-chart/m-p/2157444#M32611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/97881"&gt;@Kavya123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your data model is complex, I need to know more details about your data model. Please share a sample with us and show me the result you want by screenshot. This will make it easier for us to solve your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 07:43:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Conditional-Color-in-Bar-chart/m-p/2157444#M32611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-27T07:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Color in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-Color-in-Bar-chart/m-p/2158217#M32627</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the response. Please find the attached screenshots.&lt;/P&gt;&lt;P&gt;Below is the conditional color measure we are using. If we select the filter sector the color should not change. It should be&amp;nbsp;"#dc6900".&lt;/P&gt;&lt;P&gt;In second screenshot after selecting sector field color is changing to "#FFB500" but it should be&amp;nbsp;#dc6900. (Only company filter selection is required)&lt;/P&gt;&lt;P&gt;Color Measure =&lt;/P&gt;&lt;P&gt;VAR _SELECTCompanyID =&lt;BR /&gt;CALCULATE( SELECTEDVALUE(Company_DataIsland[POrgID] ), all(Sector[Sector] ))-- same as REMOVEFILTERS ( 'Product'[Color] )&lt;BR /&gt;&lt;BR /&gt;VAR _VALUES= VALUES(AnswerHistory_Benchmarking[POrganization] )&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( _SELECTCompanyID IN _VALUES ,"#dc6900","#FFB500 ")&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-10-27 172338.jpg" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/620495iAC944DCC27492B2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-10-27 172338.jpg" alt="Screenshot 2021-10-27 172338.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/620500iF6E8BCFD7D21CB08/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp;Company_DataIsland[POrgID] ) and Sector[Sector]&amp;nbsp; filelds are coming from different table both are not linked.&amp;nbsp;&lt;BR /&gt;AnswerHistory_Benchmarking and sector tables are linked.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 12:06:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Conditional-Color-in-Bar-chart/m-p/2158217#M32627</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2021-10-27T12:06:40Z</dc:date>
    </item>
  </channel>
</rss>

