<?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: Column chart formatting based on parameter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952908#M153472</link>
    <description>&lt;P&gt;Sure, only a slight modification of the expression is required, sorry for misunderstanding your needs before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;A href="https://1drv.ms/u/s!Avkq2QNvDlkrwUigeHVKnGozJmNL" target="_blank"&gt;Demo - project_one_issue.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 16:59:46 GMT</pubDate>
    <dc:creator>xifeng_L</dc:creator>
    <dc:date>2024-05-27T16:59:46Z</dc:date>
    <item>
      <title>Column chart formatting based on parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952540#M153450</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using dax function to create dynamically table with number of clients in each segment. The function is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;All Customers Count =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt; &lt;SPAN&gt;CustomerOrders&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SP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SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CustomerOrders&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Orders Count]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Customer Segmentation'&lt;/SPAN&gt;&lt;SPAN&gt;[Customer Segmentation Value]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would like to create a bar graph as below but formatted in two colors:&lt;/P&gt;&lt;P&gt;-- customers below selected value orange&lt;/P&gt;&lt;P&gt;-- customes above selected value dark blue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hints how to resolve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 12:37:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952540#M153450</guid>
      <dc:creator>gumis_rulez</dc:creator>
      <dc:date>2024-05-27T12:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Column chart formatting based on parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952789#M153464</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="749867" data-lia-user-login="gumis_rulez" class="lia-mention lia-mention-user"&gt;gumis_rulez&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to create a measure and use it to the conditional formatting of bar color, can refer to below demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Color = 
VAR SelectedNum = SELECTEDVALUE('Parameter'[Parameter])
VAR CurCustCount = [All Customers Count]
RETURN
IF(CurCustCount&amp;lt;SelectedNum,"#e96b30","#118dff")

//IF(CurCustCount&amp;lt;SelectedNum,"orange","blue")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;A href="https://1drv.ms/u/s!Avkq2QNvDlkrwUfof9PbtG8PatqJ?e=W3uyVa" target="_blank"&gt;Demo - Column chart formatting based on parameter.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 15:35:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952789#M153464</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-05-27T15:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Column chart formatting based on parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952818#M153466</link>
      <description>&lt;P&gt;I have followed your way and it seems it is not working. I am attaching my file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="My File" href="https://drive.google.com/file/d/1gtJZnGAkEPzXYvMn77hH5eVAYzaaCMG3/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1gtJZnGAkEPzXYvMn77hH5eVAYzaaCMG3/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 15:51:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952818#M153466</guid>
      <dc:creator>gumis_rulez</dc:creator>
      <dc:date>2024-05-27T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Column chart formatting based on parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952824#M153467</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should change color based on the customer segmentation; below 7 as on this picture orange.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 15:56:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952824#M153467</guid>
      <dc:creator>gumis_rulez</dc:creator>
      <dc:date>2024-05-27T15:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Column chart formatting based on parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952878#M153469</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="749867" data-lia-user-login="gumis_rulez" class="lia-mention lia-mention-user"&gt;gumis_rulez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You previously blocked the slicer's filtering of the visuals, resulting in slicer-selected values not being passed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to create another parameter table and apply it to the slicer. Pls refer to below demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;A href="https://1drv.ms/u/s!Avkq2QNvDlkrwUigeHVKnGozJmNL?e=hIM4Qg" target="_blank"&gt;Demo - project_one_issue.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 16:26:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952878#M153469</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-05-27T16:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Column chart formatting based on parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952887#M153470</link>
      <description>&lt;P&gt;Very interesting solution. For sure will use someday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this project the goal is to create conditional formating based on x-axis customer segmentation. If parameter = 4 then the graph should look as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In your solution the conditional formating works based on the values for each of 20 segments. In the desired one, no matter the value - parameter formats the segments. Is it something which can be done?&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 16:35:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952887#M153470</guid>
      <dc:creator>gumis_rulez</dc:creator>
      <dc:date>2024-05-27T16:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Column chart formatting based on parameter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952908#M153472</link>
      <description>&lt;P&gt;Sure, only a slight modification of the expression is required, sorry for misunderstanding your needs before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;A href="https://1drv.ms/u/s!Avkq2QNvDlkrwUigeHVKnGozJmNL" target="_blank"&gt;Demo - project_one_issue.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 16:59:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-chart-formatting-based-on-parameter/m-p/3952908#M153472</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-05-27T16:59:46Z</dc:date>
    </item>
  </channel>
</rss>

