<?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 Color condition in Bar chart in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Color-condition-in-Bar-chart/m-p/2151439#M32547</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&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 &lt;STRONG&gt;Sector&lt;/STRONG&gt; 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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the conditional Color Measure we are using in bar cahrt =&lt;/P&gt;&lt;P&gt;VAR _SELECTCompanyID =&lt;BR /&gt;CALCULATE( SELECTEDVALUE(Company_DataIsland[POrgID] ))&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 measure value should change.&amp;nbsp; Color should reflect only based on company selection. Please let me know.&lt;/P&gt;</description>
    <pubDate>Sat, 23 Oct 2021 16:31:02 GMT</pubDate>
    <dc:creator>Kavya123</dc:creator>
    <dc:date>2021-10-23T16:31:02Z</dc:date>
    <item>
      <title>Color condition in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Color-condition-in-Bar-chart/m-p/2151439#M32547</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&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 &lt;STRONG&gt;Sector&lt;/STRONG&gt; 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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the conditional Color Measure we are using in bar cahrt =&lt;/P&gt;&lt;P&gt;VAR _SELECTCompanyID =&lt;BR /&gt;CALCULATE( SELECTEDVALUE(Company_DataIsland[POrgID] ))&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 measure value should change.&amp;nbsp; Color should reflect only based on company selection. Please let me know.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 16:31:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Color-condition-in-Bar-chart/m-p/2151439#M32547</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2021-10-23T16:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Color condition in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Color-condition-in-Bar-chart/m-p/2154574#M32586</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/97881"&gt;@Kavya123&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I think you need to remove the relationship from the slicer source table to the fact table first, then you can directly use measure expression to extract the selection and use in if statement for color formating.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Color Measure =
VAR selected =
    VALUES ( Company_DataIsland[POrgID] )
VAR _current =
    SELECTEDVALUE ( AnswerHistory_Benchmarking[POrganization] )
RETURN
    IF ( _current IN selected, "#dc6900", "#FFB500 " )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 01:01:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Color-condition-in-Bar-chart/m-p/2154574#M32586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-26T01:01:41Z</dc:date>
    </item>
  </channel>
</rss>

