<?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: Conditional color coding in Bar chart in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2021097#M31179</link>
    <description>&lt;DIV class="lia-inline-reply-author"&gt;Hi Ricozhou,&lt;/DIV&gt;&lt;DIV class="lia-inline-reply-author"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-inline-reply-author"&gt;Thanks for your response. In my case few descriptions are repeating. It is working for Company Id 200 and for company ID 100 color is not changing.&lt;/DIV&gt;&lt;DIV class="lia-inline-reply-author"&gt;&lt;P&gt;Company ID , ID, Desc&lt;/P&gt;&lt;P&gt;100,1,AAA&lt;/P&gt;&lt;P&gt;200,1,AAA&lt;/P&gt;&lt;P&gt;300,1,DDD&lt;/P&gt;&lt;P&gt;400,1,DDD&lt;/P&gt;&lt;P&gt;100,2,EEE&lt;/P&gt;&lt;P&gt;200,2,FFF&lt;/P&gt;&lt;P&gt;300,2,GGG&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="lia-inline-reply-author"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-inline-reply-author"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kavya123_1-1629200163096.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/574597i843D6D178C0C80E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kavya123_1-1629200163096.png" alt="Kavya123_1-1629200163096.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kavya123_3-1629200209217.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/574599i5F7CFCC1330DF9B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kavya123_3-1629200209217.png" alt="Kavya123_3-1629200209217.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="MessageEditor"&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Conditional-color-coding-in-Bar-chart/td-p/2015568#" target="_blank" rel="noopener"&gt;PREVIEW&lt;/A&gt;&lt;DIV class="lia-js-block-events"&gt;&lt;DIV class="lia-form-row lia-form-body-entry"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-form-input-wrapper"&gt;&lt;DIV class="message-body-editor lia-inline-message-body-editor"&gt;&lt;DIV class="lia-inline-ajax-feedback"&gt;&lt;DIV class="AjaxFeedback"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="mce-tinymce mce-container mce-panel lia-editor-gte-2"&gt;&lt;DIV class="mce-container-body mce-stack-layout"&gt;&lt;DIV class="mce-top-part mce-container mce-stack-layout-item mce-first"&gt;&lt;DIV class="mce-container-body"&gt;&lt;DIV class="mce-toolbar-grp mce-container mce-panel mce-first mce-last"&gt;&lt;DIV class="mce-container-body mce-stack-layout"&gt;&lt;DIV class="mce-container mce-toolbar mce-stack-layout-item mce-first"&gt;&lt;DIV class="mce-container-body mce-flow-layout"&gt;&lt;DIV class="mce-container mce-flow-layout-item mce-first mce-last mce-btn-group"&gt;&lt;DIV&gt;&lt;DIV class="mce-widget mce-btn mce-btn-small lia-mce-toolbar-bold"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 17 Aug 2021 11:39:04 GMT</pubDate>
    <dc:creator>Kavya123</dc:creator>
    <dc:date>2021-08-17T11:39:04Z</dc:date>
    <item>
      <title>Conditional color coding in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2015568#M31111</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I need to apply condition in bar chart for color coding.&amp;nbsp; I need output like below screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID 1 is having four desc values. The Company ID 100 is associated with desc value 'AAA' for ID 1 .&amp;nbsp;If I select company ID 100 and ID 1 then I should get all four desc bars and the bar 'AAA' should highlight in red color. Please help me to achieve this in bar chart.&lt;/P&gt;&lt;P&gt;This is the sample data.&lt;/P&gt;&lt;P&gt;Company ID , ID, Desc&lt;/P&gt;&lt;P&gt;100,1,AAA&lt;/P&gt;&lt;P&gt;200,1,BBB&lt;/P&gt;&lt;P&gt;300,1,CCC&lt;/P&gt;&lt;P&gt;400,1,DDD&lt;/P&gt;&lt;P&gt;100,2,EEE&lt;/P&gt;&lt;P&gt;200,2,FFF&lt;/P&gt;&lt;P&gt;300,2,GGG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kavya123_1-1628864862131.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/572745i92F5760D95BABD1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kavya123_1-1628864862131.png" alt="Kavya123_1-1628864862131.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 14:41:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2015568#M31111</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2021-08-13T14:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional color coding in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2015583#M31112</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/97881"&gt;@Kavya123&lt;/a&gt;&amp;nbsp;Are you slicers and bar chart columns all coming from the same table? If so then do you have interactions turned off between the slicers and the bar chart?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 14:46:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2015583#M31112</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-08-13T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional color coding in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2015635#M31113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your response. Yes&lt;SPAN&gt;&amp;nbsp;slicers and bar chart columns all coming from the same table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the sample data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Company ID , ID, Desc&lt;/P&gt;&lt;P&gt;100,1,AAA&lt;/P&gt;&lt;P&gt;200,1,BBB&lt;/P&gt;&lt;P&gt;300,1,CCC&lt;/P&gt;&lt;P&gt;400,1,DDD&lt;/P&gt;&lt;P&gt;100,2,EEE&lt;/P&gt;&lt;P&gt;200,2,FFF&lt;/P&gt;&lt;P&gt;300,2,GGG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 15:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2015635#M31113</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2021-08-13T15:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional color coding in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2017489#M31143</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;I think you need to build an unrelated Company ID table to create the slicer to achieve your goal. If you use Company ID column in the same table, your color measure will disable, due to all Company IDs are selected all the same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unrelated Company ID table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Company ID = 
VALUES('Table'[Company ID])&lt;/LI-CODE&gt;
&lt;P&gt;Measure is as below.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Color Measure = 
VAR _SELECTCompanyID = SELECTEDVALUE('Company ID'[Company ID])
RETURN
IF(MAX('Table'[Company ID]) = _SELECTCompanyID,"Red","Yellow")&lt;/LI-CODE&gt;
&lt;P&gt;Find Data color in Format, click &lt;EM&gt;fx, &lt;/EM&gt;format by field value and select this color measure.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 338px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/573380i27A0433962A6696A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 955px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/573382i56EB3AD4E7B50C91/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 05:52:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2017489#M31143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-16T05:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional color coding in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2021097#M31179</link>
      <description>&lt;DIV class="lia-inline-reply-author"&gt;Hi Ricozhou,&lt;/DIV&gt;&lt;DIV class="lia-inline-reply-author"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-inline-reply-author"&gt;Thanks for your response. In my case few descriptions are repeating. It is working for Company Id 200 and for company ID 100 color is not changing.&lt;/DIV&gt;&lt;DIV class="lia-inline-reply-author"&gt;&lt;P&gt;Company ID , ID, Desc&lt;/P&gt;&lt;P&gt;100,1,AAA&lt;/P&gt;&lt;P&gt;200,1,AAA&lt;/P&gt;&lt;P&gt;300,1,DDD&lt;/P&gt;&lt;P&gt;400,1,DDD&lt;/P&gt;&lt;P&gt;100,2,EEE&lt;/P&gt;&lt;P&gt;200,2,FFF&lt;/P&gt;&lt;P&gt;300,2,GGG&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="lia-inline-reply-author"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-inline-reply-author"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kavya123_1-1629200163096.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/574597i843D6D178C0C80E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kavya123_1-1629200163096.png" alt="Kavya123_1-1629200163096.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kavya123_3-1629200209217.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/574599i5F7CFCC1330DF9B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kavya123_3-1629200209217.png" alt="Kavya123_3-1629200209217.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="MessageEditor"&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Conditional-color-coding-in-Bar-chart/td-p/2015568#" target="_blank" rel="noopener"&gt;PREVIEW&lt;/A&gt;&lt;DIV class="lia-js-block-events"&gt;&lt;DIV class="lia-form-row lia-form-body-entry"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-form-input-wrapper"&gt;&lt;DIV class="message-body-editor lia-inline-message-body-editor"&gt;&lt;DIV class="lia-inline-ajax-feedback"&gt;&lt;DIV class="AjaxFeedback"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="mce-tinymce mce-container mce-panel lia-editor-gte-2"&gt;&lt;DIV class="mce-container-body mce-stack-layout"&gt;&lt;DIV class="mce-top-part mce-container mce-stack-layout-item mce-first"&gt;&lt;DIV class="mce-container-body"&gt;&lt;DIV class="mce-toolbar-grp mce-container mce-panel mce-first mce-last"&gt;&lt;DIV class="mce-container-body mce-stack-layout"&gt;&lt;DIV class="mce-container mce-toolbar mce-stack-layout-item mce-first"&gt;&lt;DIV class="mce-container-body mce-flow-layout"&gt;&lt;DIV class="mce-container mce-flow-layout-item mce-first mce-last mce-btn-group"&gt;&lt;DIV&gt;&lt;DIV class="mce-widget mce-btn mce-btn-small lia-mce-toolbar-bold"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Aug 2021 11:39:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2021097#M31179</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2021-08-17T11:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional color coding in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2022419#M31188</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;This issue should be caused by Max function in color measure, it will always catch the max Company ID in same Desc. So when you have 100 and 200 in AAA(Desc) in 1(ID), only click 200 will show red. Try values function to get Company ID in Data Table. The new measure is as below.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Color Measure 1 = 
VAR _SELECTCompanyID = SELECTEDVALUE('Company ID'[Company ID])
VAR _VALUES= VALUES('New Table'[Company ID])
RETURN
IF(_SELECTCompanyID IN _VALUES,"Red","Yellow")&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/575003iF841A9A85563B382/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 02:35:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2022419#M31188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-18T02:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional color coding in Bar chart</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2022876#M31196</link>
      <description>&lt;P&gt;Thanks a lot. It worked&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 07:37:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Conditional-color-coding-in-Bar-chart/m-p/2022876#M31196</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2021-08-18T07:37:16Z</dc:date>
    </item>
  </channel>
</rss>

