<?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: Formatting color in a Dax formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2583727#M74232</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;You should be able to use conditional formatting rules to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 16:54:45 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-06-16T16:54:45Z</dc:date>
    <item>
      <title>Formatting color in a Dax formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2583704#M74230</link>
      <description>&lt;P&gt;Out of curiosity are you able to conditionally format values that are formatted like 0:00:00? I'm looking to format things that are above 15 minutes. I tried including a color VAR in my DAX Formula to format it. So what I added was the VAR color and the &amp;amp; IF statement. It seemed to have worked, however instead of making the values red, it added the #ff0000" at the end of those that were above 15 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg Response Time (Mins) = VAR hours = ROUNDDOWN( 'ReadTime'[AvgResponseTime] / 3600,0) VAR minutes = ROUNDDOWN( MOD( 'ReadTime'[AvgResponseTime], 3600) / 60, 0) VAR seconds = INT( MOD ('ReadTime'[AvgResponseTime], 60) ) VAR color = "0:15:00" RETURN FORMAT(hours, "0") &amp;amp; ":" &amp;amp; FORMAT(minutes, "00") &amp;amp; ":" &amp;amp; FORMAT(seconds, "00") &amp;amp; IF(minutes &amp;gt; 15, "#ff0000", BLANK())&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 16:34:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2583704#M74230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-16T16:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting color in a Dax formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2583727#M74232</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;You should be able to use conditional formatting rules to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 16:54:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2583727#M74232</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-06-16T16:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting color in a Dax formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2583728#M74233</link>
      <description>&lt;P&gt;I do try to do that, however when I try to click on the conditional formatting, and select the field, it blurs out the field. It is an already created calculation, so that is why I am trying to use dax to color.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 16:59:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2583728#M74233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-16T16:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting color in a Dax formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2591975#M74685</link>
      <description>&lt;P&gt;Hi， Anonymous&lt;/LI-USER&gt;&amp;nbsp;；&lt;/P&gt;
&lt;P&gt;You could create a column as follows:&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;Time in Text = 
VAR Seconds =[Column1]
VAR Minutes =
     INT(MOD(Seconds,3600)/60)
VAR Hours =
    INT(Seconds/3600)
VAR ss =
    MOD(MOD(Seconds,3600),60)
RETURN
    Hours &amp;amp; ":" &amp;amp; Minutes &amp;amp; ":" &amp;amp; ss&lt;/LI-CODE&gt;
&lt;P&gt;The final show:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a conditional measure.&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;Measure = IF(INT(MOD(MAX('Table (2)'[Column1]),3600)/60)&amp;gt;15, "#ff0000","black")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The final show:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 10:04:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2591975#M74685</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-06-21T10:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting color in a Dax formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2592974#M74740</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="295629" data-lia-user-login="v-yalanwu-msft" class="lia-mention lia-mention-user"&gt;v-yalanwu-msft&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;Provided is a screenshot of what what I'm using, measures created, and the end goal. I attempted creating a column and measure you provided however it didn't seem to work right&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 17:47:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2592974#M74740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-21T17:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting color in a Dax formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2608542#M75578</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;please provide some&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in your tables (&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;exclude&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;sensitive&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;) with&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;format and your&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;with backend logic and special examples.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;if you can share a&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-upload-PBI-in-Community/m-p/1672886" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-upload-PBI-in-Community/m-p/1672886&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 07:16:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formatting-color-in-a-Dax-formula/m-p/2608542#M75578</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-06-29T07:16:02Z</dc:date>
    </item>
  </channel>
</rss>

