<?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: Switch DAX to define YES=1, NO=0 to format font colour in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-DAX-to-define-YES-1-NO-0-to-format-font-colour/m-p/2117880#M48537</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;Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TrimYESNO=
If(max(SVClist[TRIM])="YES",1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use conditional formatting to change the font color.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#format-background-or-font-color" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#format-background-or-font-color&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 03:47:58 GMT</pubDate>
    <dc:creator>VahidDM</dc:creator>
    <dc:date>2021-10-06T03:47:58Z</dc:date>
    <item>
      <title>Switch DAX to define YES=1, NO=0 to format font colour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-DAX-to-define-YES-1-NO-0-to-format-font-colour/m-p/2117865#M48536</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is seemingly simple, not sure why i just cant get the syntax right, any help appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I just want to match YES to 1, and NO to 0, then apply the measure to format my YES to red.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the table is filtered by a slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 03:35:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-DAX-to-define-YES-1-NO-0-to-format-font-colour/m-p/2117865#M48536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-06T03:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Switch DAX to define YES=1, NO=0 to format font colour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-DAX-to-define-YES-1-NO-0-to-format-font-colour/m-p/2117880#M48537</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;Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TrimYESNO=
If(max(SVClist[TRIM])="YES",1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use conditional formatting to change the font color.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#format-background-or-font-color" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#format-background-or-font-color&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 03:47:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-DAX-to-define-YES-1-NO-0-to-format-font-colour/m-p/2117880#M48537</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-10-06T03:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Switch DAX to define YES=1, NO=0 to format font colour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-DAX-to-define-YES-1-NO-0-to-format-font-colour/m-p/2117898#M48538</link>
      <description>&lt;P&gt;Thank you so much!! baffles me why the simplest codes are the hardest to write&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 04:05:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-DAX-to-define-YES-1-NO-0-to-format-font-colour/m-p/2117898#M48538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-06T04:05:08Z</dc:date>
    </item>
  </channel>
</rss>

