<?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 Bar Chart Legend with Parameter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4668712#M178840</link>
    <description>&lt;P&gt;Hello, I want to create bars chart like picture below. My bars chart is made from fields parameter (measure) that is&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[CNTD_Supplier]&amp;nbsp; --&amp;gt; Distinct of supplier&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;CNTD_supplier_file]&amp;nbsp; --&amp;gt;&amp;nbsp;Distinct of supplier files&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both of them will give distinct number of supplier or distinct number of files in everyday if there no legend&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But I want to color bar base on this condition:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Color By Status = SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;[Target] &amp;gt; 0 &amp;amp;&amp;amp; [CNT_FILE_ID] = 0, "Not Delivered",&lt;BR /&gt;[Target] = 0 &amp;amp;&amp;amp; [CNT_FILE_ID] = 0, " No Target",&lt;BR /&gt;[CNT_FILE_ID] =[Target], "Delivered By Target",&lt;BR /&gt;[CNT_FILE_ID] &amp;gt; [Target], "Deliver More than Target",&lt;BR /&gt;"Delivered Less than target"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Color By completeness = SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;[Target] &amp;gt; 0 &amp;amp;&amp;amp; [CNT_FILE_ID] = 0, "Not Complete",&lt;BR /&gt;[Target] = 0 &amp;amp;&amp;amp; [CNT_FILE_ID] = 0, " No Target",&lt;BR /&gt;[CNT_FILE_ID] =[Target], "Complete",&lt;BR /&gt;[CNT_FILE_ID] &amp;gt; [Target], "Complete",&lt;BR /&gt;"No delivery"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;[CNTD_Supplier] &lt;/STRONG&gt;(Parameter) It should color the bar by&amp;nbsp;&lt;STRONG&gt;Color By Status or&amp;nbsp;Color By completeness &lt;/STRONG&gt;(If it also posible to make this as parameter select) by supplier. For example,please use table below,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Supplier A on 1 Jan have &lt;STRONG&gt;target&lt;/STRONG&gt; = 1 but send 2 files (Distincy of file ID) --&amp;gt; This should color the bar&amp;nbsp;&lt;STRONG&gt;Color By Status =&amp;nbsp;Deliver More than Target&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Supplier A on 2 Jan have &lt;STRONG&gt;target&lt;/STRONG&gt; = 1 --&amp;gt; This should color the bar&amp;nbsp;&lt;STRONG&gt;Color By Status =&amp;nbsp;Deliver By Target&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My data looklike&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is&amp;nbsp;&lt;STRONG&gt;Color By Status &lt;/STRONG&gt;got wrong return. It's not return by supplier, it return by file name&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2025 17:17:38 GMT</pubDate>
    <dc:creator>Mokegubshook</dc:creator>
    <dc:date>2025-04-25T17:17:38Z</dc:date>
    <item>
      <title>Bar Chart Legend with Parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4668712#M178840</link>
      <description>&lt;P&gt;Hello, I want to create bars chart like picture below. My bars chart is made from fields parameter (measure) that is&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[CNTD_Supplier]&amp;nbsp; --&amp;gt; Distinct of supplier&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;CNTD_supplier_file]&amp;nbsp; --&amp;gt;&amp;nbsp;Distinct of supplier files&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both of them will give distinct number of supplier or distinct number of files in everyday if there no legend&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But I want to color bar base on this condition:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Color By Status = SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;[Target] &amp;gt; 0 &amp;amp;&amp;amp; [CNT_FILE_ID] = 0, "Not Delivered",&lt;BR /&gt;[Target] = 0 &amp;amp;&amp;amp; [CNT_FILE_ID] = 0, " No Target",&lt;BR /&gt;[CNT_FILE_ID] =[Target], "Delivered By Target",&lt;BR /&gt;[CNT_FILE_ID] &amp;gt; [Target], "Deliver More than Target",&lt;BR /&gt;"Delivered Less than target"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Color By completeness = SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;[Target] &amp;gt; 0 &amp;amp;&amp;amp; [CNT_FILE_ID] = 0, "Not Complete",&lt;BR /&gt;[Target] = 0 &amp;amp;&amp;amp; [CNT_FILE_ID] = 0, " No Target",&lt;BR /&gt;[CNT_FILE_ID] =[Target], "Complete",&lt;BR /&gt;[CNT_FILE_ID] &amp;gt; [Target], "Complete",&lt;BR /&gt;"No delivery"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;[CNTD_Supplier] &lt;/STRONG&gt;(Parameter) It should color the bar by&amp;nbsp;&lt;STRONG&gt;Color By Status or&amp;nbsp;Color By completeness &lt;/STRONG&gt;(If it also posible to make this as parameter select) by supplier. For example,please use table below,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Supplier A on 1 Jan have &lt;STRONG&gt;target&lt;/STRONG&gt; = 1 but send 2 files (Distincy of file ID) --&amp;gt; This should color the bar&amp;nbsp;&lt;STRONG&gt;Color By Status =&amp;nbsp;Deliver More than Target&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Supplier A on 2 Jan have &lt;STRONG&gt;target&lt;/STRONG&gt; = 1 --&amp;gt; This should color the bar&amp;nbsp;&lt;STRONG&gt;Color By Status =&amp;nbsp;Deliver By Target&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My data looklike&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is&amp;nbsp;&lt;STRONG&gt;Color By Status &lt;/STRONG&gt;got wrong return. It's not return by supplier, it return by file name&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 17:17:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4668712#M178840</guid>
      <dc:creator>Mokegubshook</dc:creator>
      <dc:date>2025-04-25T17:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Legend with Parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4668729#M178841</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1234890" data-lia-user-login="Mokegubshook" class="lia-mention lia-mention-user"&gt;Mokegubshook&lt;/a&gt;&amp;nbsp;Can you share sample data or a sample pbix file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 17:34:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4668729#M178841</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-04-25T17:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Legend with Parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4684964#M179439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1234890" data-lia-user-login="Mokegubshook" class="lia-mention lia-mention-user"&gt;Mokegubshook&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 12:42:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4684964#M179439</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-05-08T12:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Legend with Parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4688476#M179557</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1234890" data-lia-user-login="Mokegubshook" class="lia-mention lia-mention-user"&gt;Mokegubshook&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 06:36:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4688476#M179557</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-05-12T06:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Legend with Parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4704579#M180187</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1234890" data-lia-user-login="Mokegubshook" class="lia-mention lia-mention-user"&gt;Mokegubshook&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 06:13:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bar-Chart-Legend-with-Parameter/m-p/4704579#M180187</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-05-23T06:13:18Z</dc:date>
    </item>
  </channel>
</rss>

