<?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: Format background of blank cells in matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858585#M91964</link>
    <description>&lt;P&gt;Hey! Thanks for the reply and your time! I'm afraid I can't implement this as I'm not entirely sure what it's doing?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 08:39:20 GMT</pubDate>
    <dc:creator>EpicTriffid</dc:creator>
    <dc:date>2022-10-24T08:39:20Z</dc:date>
    <item>
      <title>Format background of blank cells in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858542#M91959</link>
      <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get all cells specified as Actuals im the below matrix to have a grey background colour. Just for differentiation. However, I can't just default them to having zero as a zero means something different from the blank in this dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code for what I've got so far is fine for colouring in figures with actuals, but getting those blank cells under actuals filled in is boggling my brain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Q2 Actuals BG = 
IF(
    SELECTEDVALUE(Query2[Forecast/Actuals]) = "Actuals", "#d3d3d3")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 08:23:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858542#M91959</guid>
      <dc:creator>EpicTriffid</dc:creator>
      <dc:date>2022-10-24T08:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Format background of blank cells in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858574#M91962</link>
      <description>&lt;P&gt;hello please try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Conditional Formatting =
VAR SelectedActual = 
    SELECTEDVALUE(Query2[Forecast/Actuals])
VAR Table =
    CALCULATETABLE (
        Table,
        REMOVEFILTERS (
            //All your dates example
            Table[Date],
            Table[Month]
        )
    )
VAR summaryof =
    SUMMARIZE ( Table, [Date], "Actual Forcast", [amount of all actual and forcast] )
VAR T3 =
    FILTER ( summaryof, SelectedActual  = "Actuals" )

RETURN
    IF(
    T3, "#d3d3d3")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Oct 2022 08:34:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858574#M91962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-24T08:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Format background of blank cells in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858585#M91964</link>
      <description>&lt;P&gt;Hey! Thanks for the reply and your time! I'm afraid I can't implement this as I'm not entirely sure what it's doing?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 08:39:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858585#M91964</guid>
      <dc:creator>EpicTriffid</dc:creator>
      <dc:date>2022-10-24T08:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Format background of blank cells in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858758#M91972</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var table is making sure all values are selected&lt;/P&gt;&lt;P&gt;Var summary is summarizing the table with your measure&lt;/P&gt;&lt;P&gt;Var t3 is filtering the summarized table into only actuals&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 09:40:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858758#M91972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-24T09:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Format background of blank cells in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858976#M91995</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;Unfortunately that doesn't work. It still does not show any formatting of the background against any blank values.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 11:18:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2858976#M91995</guid>
      <dc:creator>EpicTriffid</dc:creator>
      <dc:date>2022-10-24T11:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Format background of blank cells in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2859403#M92029</link>
      <description>&lt;P&gt;I can get quite close to this but i just can't seem to make the conditional formatting affect the blank cells:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I also know that technically, in the table operating behind this matrix that essentially there are no rows that relate to the blank cells, so I'm trying to make Power BI only affect what is technically "missing" from the data, but I don't know how to get there!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 14:09:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2859403#M92029</guid>
      <dc:creator>EpicTriffid</dc:creator>
      <dc:date>2022-10-24T14:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Format background of blank cells in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2860708#M92113</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="119965" data-lia-user-login="EpicTriffid" class="lia-mention lia-mention-user"&gt;EpicTriffid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;Sample data:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Color = IF(
    SELECTEDVALUE('Table'[Forecast/Actuals]) = "Actuals", "#d3d3d3")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = SUM('Table'[Value])+0&lt;/LI-CODE&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;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 05:57:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2860708#M92113</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-10-25T05:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Format background of blank cells in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2861201#M92139</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="332147" data-lia-user-login="v-zhangti" class="lia-mention lia-mention-user"&gt;v-zhangti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately that doesn't work either as the format of the data is closer to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the matrix is inferring the context of data with missing years and putting a blank in it's place, generating the below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the same logic in my measures of only colouring in "Actuals" as grey still gives me the below. I can't seem to select those blanks under Actuals using DAX to make them colour grey.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that make sense?&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, 25 Oct 2022 08:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2861201#M92139</guid>
      <dc:creator>EpicTriffid</dc:creator>
      <dc:date>2022-10-25T08:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Format background of blank cells in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2862007#M92186</link>
      <description>&lt;P&gt;Is there any help on this? I feel like I've dealt with blanks before in a matrix but cannot remember what I did?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 14:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Format-background-of-blank-cells-in-matrix/m-p/2862007#M92186</guid>
      <dc:creator>EpicTriffid</dc:creator>
      <dc:date>2022-10-25T14:18:01Z</dc:date>
    </item>
  </channel>
</rss>

