<?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: How to format part of a dynamic text to be bold with different font color in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-format-part-of-a-dynamic-text-to-be-bold-with-different/m-p/3495137#M45089</link>
    <description>&lt;P&gt;There are several HTML visuals available that might help, e.g. HTML Text Styler or HTML content. HTML Text Styler for example, in HTML Text Styler, the measure below will create this output:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexBr_1-1698201558849.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/986089iF2475F4A29548289/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexBr_1-1698201558849.png" alt="AlexBr_1-1698201558849.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sample =&lt;/SPAN&gt; &lt;SPAN&gt;CONCATENATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;" &amp;lt;span style= 'color:rgb(0, 0, 255);'&amp;gt;&amp;lt;b&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;[This is the Text]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"; data lagged due to data stabilisation"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;You can replace the 'This is the Text' measure with your own code and the second part of the CONCATENATE you could replace the simple string with another measure.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;You can find a demo report for HTML Text Styler here:&amp;nbsp;&lt;A href="https://bisamurai.com/custom-visuals-knowledge-base/bold-italic-underline-power-bi/" target="_blank"&gt;Bold, italic, underline etc. in Power BI - BI Samurai&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and here&amp;nbsp;&lt;A href="https://bisamurai.com/custom-visuals-knowledge-base/power-bi-dynamic-format/" target="_blank"&gt;Format positive and negative values in Power BI - BI Samurai&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTML Content has a demo here:&amp;nbsp;&lt;A href="https://www.html-content.com/examples/dax-simple" target="_blank"&gt;Simple Worked Example | HTML Content - Custom Visual for Power BI (html-content.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 25 Oct 2023 02:40:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-25T02:40:57Z</dc:date>
    <item>
      <title>How to format part of a dynamic text to be bold with different font color</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-format-part-of-a-dynamic-text-to-be-bold-with-different/m-p/3494271#M45084</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dynamic string to show values based on swtich statements. I need to format the value to be bold and different color.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sara_J_3-1698159711464.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/985869iEC3C57B528EDEF1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sara_J_3-1698159711464.png" alt="Sara_J_3-1698159711464.png" /&gt;&lt;/span&gt;&amp;nbsp;to&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sara_J_2-1698159693569.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/985868i92076D958F05A0FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sara_J_2-1698159693569.png" alt="Sara_J_2-1698159693569.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below is the dax code : Please advise on code to format the color and bold as above.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;==========================================&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Statement =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt; &lt;SPAN&gt;Curr&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[Ratio]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt; &lt;SPAN&gt;A&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;switch&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;Curr&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;gt;1"&lt;/SPAN&gt;&lt;SPAN&gt;,C&lt;/SPAN&gt;&lt;SPAN&gt;urr&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"=1"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt; &lt;SPAN&gt;B&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;" for "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;[Latest Month]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;"; "&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;"data lagged due to data stabiliztaion"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt; &lt;SPAN&gt;string&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;B&lt;BR /&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;string&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;=======================================&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;work around solution could be to break into 3 shapes and format first part.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Sara&lt;/DIV&gt;&lt;/DIV&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 15:14:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-format-part-of-a-dynamic-text-to-be-bold-with-different/m-p/3494271#M45084</guid>
      <dc:creator>Sara_J</dc:creator>
      <dc:date>2023-10-24T15:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to format part of a dynamic text to be bold with different font color</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-format-part-of-a-dynamic-text-to-be-bold-with-different/m-p/3495137#M45089</link>
      <description>&lt;P&gt;There are several HTML visuals available that might help, e.g. HTML Text Styler or HTML content. HTML Text Styler for example, in HTML Text Styler, the measure below will create this output:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexBr_1-1698201558849.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/986089iF2475F4A29548289/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexBr_1-1698201558849.png" alt="AlexBr_1-1698201558849.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sample =&lt;/SPAN&gt; &lt;SPAN&gt;CONCATENATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;" &amp;lt;span style= 'color:rgb(0, 0, 255);'&amp;gt;&amp;lt;b&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;[This is the Text]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"; data lagged due to data stabilisation"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;You can replace the 'This is the Text' measure with your own code and the second part of the CONCATENATE you could replace the simple string with another measure.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;You can find a demo report for HTML Text Styler here:&amp;nbsp;&lt;A href="https://bisamurai.com/custom-visuals-knowledge-base/bold-italic-underline-power-bi/" target="_blank"&gt;Bold, italic, underline etc. in Power BI - BI Samurai&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and here&amp;nbsp;&lt;A href="https://bisamurai.com/custom-visuals-knowledge-base/power-bi-dynamic-format/" target="_blank"&gt;Format positive and negative values in Power BI - BI Samurai&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTML Content has a demo here:&amp;nbsp;&lt;A href="https://www.html-content.com/examples/dax-simple" target="_blank"&gt;Simple Worked Example | HTML Content - Custom Visual for Power BI (html-content.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Oct 2023 02:40:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-format-part-of-a-dynamic-text-to-be-bold-with-different/m-p/3495137#M45089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-25T02:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to format part of a dynamic text to be bold with different font color</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-format-part-of-a-dynamic-text-to-be-bold-with-different/m-p/3496923#M45099</link>
      <description>&lt;P&gt;Thank you for the solution.&lt;BR /&gt;i downloaded the HTML visualization . While few available not displaying the results on Cloud service . HTML text styler does display the expected solution.&lt;BR /&gt;How ever i still need it to approved by my organization and needs licensing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 16:08:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-format-part-of-a-dynamic-text-to-be-bold-with-different/m-p/3496923#M45099</guid>
      <dc:creator>Sara_J</dc:creator>
      <dc:date>2023-10-25T16:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to format part of a dynamic text to be bold with different font color</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-format-part-of-a-dynamic-text-to-be-bold-with-different/m-p/3497576#M45107</link>
      <description>&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 01:10:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-format-part-of-a-dynamic-text-to-be-bold-with-different/m-p/3497576#M45107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-26T01:10:45Z</dc:date>
    </item>
  </channel>
</rss>

