<?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: Applying Condition Formatting for Text Values in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Applying-Condition-Formatting-for-Text-Values/m-p/3271566#M7644</link>
    <description>&lt;P&gt;Don't have 50 columns. Have a single column with 50 values. (or ideally far fewer - nobody will want to scroll horizontally)&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 01:38:17 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-06-07T01:38:17Z</dc:date>
    <item>
      <title>Applying Condition Formatting for Text Values</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Applying-Condition-Formatting-for-Text-Values/m-p/3268498#M7636</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to apply conditional formatting to text values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a matrix like:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Sl. No&lt;/TD&gt;&lt;TD&gt;Column1&lt;/TD&gt;&lt;TD&gt;Column2&lt;/TD&gt;&lt;TD&gt;Column3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Moderate&lt;/TD&gt;&lt;TD&gt;High&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Low&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Low&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Very High&lt;/TD&gt;&lt;TD&gt;Moderate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Low&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to apply conditional formatting to colour code according to the text using the measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colour =&amp;nbsp;&lt;/P&gt;&lt;P&gt;var selected = SELECTEDVALUE(table1[Column1])&lt;/P&gt;&lt;P&gt;return&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(selected = "Low", "green",&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if(selected = "Moderate", "yellow",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(selected = "High", "orange",&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(selected = "Very High", "red", "white")))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the same measure for every column but it gives the colour code according to Column1 since that is what I defined in the measure (DAX). I have more than 50 columns in the matrix and would have to create a measure for each of them. Is there a way to create just a single measure that can be applied to all 50 columns instead (like dynamically select the column)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 12:55:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Applying-Condition-Formatting-for-Text-Values/m-p/3268498#M7636</guid>
      <dc:creator>lopa30</dc:creator>
      <dc:date>2023-06-05T12:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Applying Condition Formatting for Text Values</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Applying-Condition-Formatting-for-Text-Values/m-p/3271566#M7644</link>
      <description>&lt;P&gt;Don't have 50 columns. Have a single column with 50 values. (or ideally far fewer - nobody will want to scroll horizontally)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 01:38:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Applying-Condition-Formatting-for-Text-Values/m-p/3271566#M7644</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-06-07T01:38:17Z</dc:date>
    </item>
  </channel>
</rss>

