<?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: Custom Conditional Formatting based on user selection. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Conditional-Formatting-based-on-user-selection/m-p/3063538#M41056</link>
    <description>&lt;P&gt;Thank You so much..&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;it worked for me, just by modifying your logic i am able to get the desired result.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 10:45:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-06T10:45:51Z</dc:date>
    <item>
      <title>Custom Conditional Formatting based on user selection.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Conditional-Formatting-based-on-user-selection/m-p/3061481#M41039</link>
      <description>&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a dashboard which requires to change conditional formatting based on user input.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a target and conditional formatting is done on it based on&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Minimum value to 90% down arrow&lt;/P&gt;&lt;P&gt;90% to 100% horizontal arrow&lt;/P&gt;&lt;P&gt;Above 100% up arrow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the user wants that the conditional formatting of target should change based on his selection for eg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the user wants to change target % from&amp;nbsp;&lt;/P&gt;&lt;P&gt;Minimum to 80% then arrow should change like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Minimum to 80% down arrow,&lt;/P&gt;&lt;P&gt;80% to 100% horizontal arrow&lt;/P&gt;&lt;P&gt;Above 100% up arrow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help..&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 13:43:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Conditional-Formatting-based-on-user-selection/m-p/3061481#M41039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-04T13:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Conditional Formatting based on user selection.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Conditional-Formatting-based-on-user-selection/m-p/3063235#M41051</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstly, I suggest you to create a percentage slicer by &lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-what-if" target="_self"&gt;What if Parameter&lt;/A&gt;. Then use between option for that slicer. Here I suggest you to use whole number in what if parameter as below. If you use increment 0.01 and range from 1 to 1.2, Power BI will return incorrect result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _RangeStart = MIN(Parameter[Parameter])/100
VAR _RangeEnd = MAX(Parameter[Parameter])/100
VAR _Percentage =CALCULATE(SUM('Table'[Value]))
RETURN
IF(_Percentage &amp;lt;=_RangeStart,-1,IF(_Percentage&amp;gt;_RangeEnd,1,0))&lt;/LI-CODE&gt;
&lt;P&gt;Finally, you can use conditional formatting in cell elements and set as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:19:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Conditional-Formatting-based-on-user-selection/m-p/3063235#M41051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-06T08:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Conditional Formatting based on user selection.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Conditional-Formatting-based-on-user-selection/m-p/3063538#M41056</link>
      <description>&lt;P&gt;Thank You so much..&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;it worked for me, just by modifying your logic i am able to get the desired result.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 10:45:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Conditional-Formatting-based-on-user-selection/m-p/3063538#M41056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-06T10:45:51Z</dc:date>
    </item>
  </channel>
</rss>

