<?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 make a Card Text Blink in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4096624#M162574</link>
    <description>&lt;P&gt;hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first, create the measure for color conditional formating.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Color Palette = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'Table'[Nom]&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"#FF0000"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"#000000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;next, in your card visual option, go to "Callout value" option. then choose conditional formating.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;choose Field Value in Format Style.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;then, select the measure in field.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;press OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the result.&lt;/P&gt;&lt;P&gt;negative&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;positive&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 04:52:41 GMT</pubDate>
    <dc:creator>Irwan</dc:creator>
    <dc:date>2024-08-13T04:52:41Z</dc:date>
    <item>
      <title>How to make a Card Text Blink</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4096531#M162566</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to create a card that uses a measure and if negative it blinks Red if positive its just normal black text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All my reading says to HTML or CSS but not entirely sure how to do this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can any one help me please?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 03:17:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4096531#M162566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T03:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Card Text Blink</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4096624#M162574</link>
      <description>&lt;P&gt;hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first, create the measure for color conditional formating.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Color Palette = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'Table'[Nom]&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"#FF0000"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"#000000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;next, in your card visual option, go to "Callout value" option. then choose conditional formating.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;choose Field Value in Format Style.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;then, select the measure in field.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;press OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the result.&lt;/P&gt;&lt;P&gt;negative&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;positive&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 04:52:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4096624#M162574</guid>
      <dc:creator>Irwan</dc:creator>
      <dc:date>2024-08-13T04:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Card Text Blink</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4097618#M162594</link>
      <description>&lt;P&gt;Do you know how to get it to blink or flash, please?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 12:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4097618#M162594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T12:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Card Text Blink</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4098697#M162650</link>
      <description>&lt;P&gt;hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have never seen a blinking or flashing color in conditional formating since it is color or icon selections.&lt;/P&gt;&lt;P&gt;But the others might know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 23:52:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4098697#M162650</guid>
      <dc:creator>Irwan</dc:creator>
      <dc:date>2024-08-13T23:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Card Text Blink</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4098923#M162655</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Power Bi's visualizations don't support embedding custom HTML or CSS code, so card visuals can't be set directly with CSS or HTML.&lt;BR /&gt;Irwan's reply can be used as a workaround for your reference.&lt;/FONT&gt;&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;
&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;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 02:21:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4098923#M162655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-14T02:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a Card Text Blink</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4099241#M162667</link>
      <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;&lt;/P&gt;
&lt;P&gt;For flashing text, you could construct HTML or SVG and use the &lt;A href="https://appsource.microsoft.com/en-us/product/powerbivisuals/coacervolimited1596856650797.htmlcontent_certified?tab=overview" target="_blank" rel="noopener"&gt;HTML Content (Lite) custom visual&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached a small example where I defined the content for the "card" as an SVG.&lt;/P&gt;
&lt;P&gt;The measure is as follows:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Profit $ SVG = 
VAR MeasureValue = [Profit $]
VAR MeasureSign = SIGN ( MeasureValue )
VAR MeasureFormatted =
    FORMAT ( MeasureValue, "#,##0;(#,##);-" )
VAR TextColour =
    SWITCH (
        MeasureSign,
        -1,
        "red",
        "black"
    )
VAR AnimationTag =
    SWITCH (
        MeasureSign,
        -1,
        "&amp;lt;animate attributeName='opacity' values='1;0;1' dur='1s' repeatCount='indefinite' /&amp;gt;",
        ""
    )
VAR SVG_String = 
        "&amp;lt;svg viewBox='0 0 300 80' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet'&amp;gt;
        &amp;lt;text x='50%' y='50%' font-family='DIN' font-size='50' fill='" &amp;amp; TextColour &amp;amp; "' dominant-baseline='middle' text-anchor='middle'&amp;gt;"
        &amp;amp; AnimationTag &amp;amp; MeasureFormatted &amp;amp; "&amp;lt;/text&amp;gt;&amp;lt;/svg&amp;gt;"
RETURN
    SVG_String&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The formatting would likely need to be adjusted to meet your needs but this should be a start at least &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 05:03:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-make-a-Card-Text-Blink/m-p/4099241#M162667</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2024-08-14T05:03:16Z</dc:date>
    </item>
  </channel>
</rss>

