<?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: Weekly RVtools report - add colour in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-RVtools-report-add-colour/m-p/3126688#M111069</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="467005" data-lia-user-login="Raggsokk" class="lia-mention lia-mention-user"&gt;Raggsokk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _select=
SELECTEDVALUE('Table'[Date])
var _current=
SUMX(
    FILTER(ALL('Table'),
    WEEKNUM(_select,2)=WEEKNUM('Table'[Date],2)&amp;amp;&amp;amp;'Table'[Server]=MAX('Table'[Server])),[RamGB])
var _last=
SUMX(
    FILTER(ALL('Table'),
    WEEKNUM(_select,2)-1=WEEKNUM('Table'[Date],2)&amp;amp;&amp;amp;'Table'[Server]=MAX('Table'[Server])),[RamGB])
return
SWITCH(
    TRUE(),
        _last&amp;gt;_current,"red",
        _last=_current,"yellow",
        "blue")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Conditional formatting – Background color.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 02:32:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-13T02:32:11Z</dc:date>
    <item>
      <title>Weekly RVtools report - add colour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-RVtools-report-add-colour/m-p/3123862#M110897</link>
      <description>&lt;P&gt;I find many post on how to add colour to reports, but I can't really wrap my head around it on how I can do it in my dataset.&lt;BR /&gt;Hopefully someone can point me in the right directions.&lt;BR /&gt;&lt;BR /&gt;I have made a weekly report that adds many rvtools reports into the dataset.&lt;BR /&gt;The table ends up something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Source&lt;/TD&gt;&lt;TD&gt;Server&lt;/TD&gt;&lt;TD&gt;RamGB&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rvtools-week1&lt;/TD&gt;&lt;TD&gt;Server1&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;7/1-23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rvtools-week2&lt;/TD&gt;&lt;TD&gt;Server1&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;14/1-23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rvtools-week3&lt;/TD&gt;&lt;TD&gt;Server1&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;21/1-23&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;How can I add colour to my report. If RamGB is higher from last week, I would like the number to show up as green. If it is lower, red.&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 11:48:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-RVtools-report-add-colour/m-p/3123862#M110897</guid>
      <dc:creator>Raggsokk</dc:creator>
      <dc:date>2023-03-10T11:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly RVtools report - add colour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-RVtools-report-add-colour/m-p/3126688#M111069</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="467005" data-lia-user-login="Raggsokk" class="lia-mention lia-mention-user"&gt;Raggsokk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _select=
SELECTEDVALUE('Table'[Date])
var _current=
SUMX(
    FILTER(ALL('Table'),
    WEEKNUM(_select,2)=WEEKNUM('Table'[Date],2)&amp;amp;&amp;amp;'Table'[Server]=MAX('Table'[Server])),[RamGB])
var _last=
SUMX(
    FILTER(ALL('Table'),
    WEEKNUM(_select,2)-1=WEEKNUM('Table'[Date],2)&amp;amp;&amp;amp;'Table'[Server]=MAX('Table'[Server])),[RamGB])
return
SWITCH(
    TRUE(),
        _last&amp;gt;_current,"red",
        _last=_current,"yellow",
        "blue")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Conditional formatting – Background color.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 02:32:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-RVtools-report-add-colour/m-p/3126688#M111069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T02:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly RVtools report - add colour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-RVtools-report-add-colour/m-p/4600517#M176118</link>
      <description>&lt;P&gt;Hi, Are you using the fabric to import the data from rvtools? or is there a template or something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Care to share?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 13:55:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-RVtools-report-add-colour/m-p/4600517#M176118</guid>
      <dc:creator>fmiller</dc:creator>
      <dc:date>2025-03-07T13:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly RVtools report - add colour</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-RVtools-report-add-colour/m-p/4601007#M176134</link>
      <description>&lt;P&gt;We have a PowerShell script that runs on a schedule each week.&lt;/P&gt;&lt;P&gt;I then merge all files in the same folder in powerbi.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 18:58:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Weekly-RVtools-report-add-colour/m-p/4601007#M176134</guid>
      <dc:creator>Raggsokk</dc:creator>
      <dc:date>2025-03-07T18:58:43Z</dc:date>
    </item>
  </channel>
</rss>

