<?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 test for blank values in matrix visual and replace them with a previous value from the table? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-test-for-blank-values-in-matrix-visual-and-replace-them/m-p/2935559#M96710</link>
    <description>&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;You can download my sample from the link below.&lt;BR /&gt;&lt;A title="TestSocMed.pbix" href="https://drive.google.com/file/d/1opoHEGbaLW6eiWdoojGLBPleCJOvbIc9/view?usp=sharing" target="_blank" rel="noopener"&gt;TestSocMed.pbix&lt;/A&gt;&lt;BR /&gt;Thank you for your help.&lt;BR /&gt;I got a bit forward in the solution.&amp;nbsp;&lt;BR /&gt;Probably the direction of the iteration in the MAXX sould be on the DateTable side...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    VAR tableDateTableFiltered = 
        FILTER(
            VALUES(DateTable[Date]),
            DateTable[Date] &amp;gt;= dateMinDateInTable &amp;amp;&amp;amp; 
                DateTable[Date] &amp;lt;= dateMaxDateInTable
        )

    VAR intMAXinPeriod = 
        MAXX(
            tableDateTableFiltered,
            VAR intMax =
                    MAX('Table'[Value])
            RETURN
                COALESCE( 
                    intMax,
                    101010
                )
        )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Now the matrix looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now I'm fighting with the right measure that gives me back the previous value in the series&amp;nbsp;&lt;BR /&gt;- the value from the before column, that precedes 101010.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 10:43:26 GMT</pubDate>
    <dc:creator>szabofe</dc:creator>
    <dc:date>2022-11-29T10:43:26Z</dc:date>
    <item>
      <title>How to test for blank values in matrix visual and replace them with a previous value from the table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-test-for-blank-values-in-matrix-visual-and-replace-them/m-p/2933959#M96608</link>
      <description>&lt;P&gt;Hi Community,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'd like to make a report based on occationally entered soc. media data.&lt;BR /&gt;The user enters data related to a specific date and team by soc. media.&lt;BR /&gt;How many followers the team has on the specific date?&lt;BR /&gt;There are missing weeks, months like this:&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#999999"&gt;(The MAX of the timeperiod can be seen.&lt;BR /&gt;I'd like to put a visual on the report witch shows the trend in the end.)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;There are two tables in the sample:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I wrote a measure to fill in the matrix cells.&amp;nbsp;&lt;BR /&gt;The returning value would have to corrigate the missing values.&lt;BR /&gt;In place of 101010 will come a measure.&lt;BR /&gt;&lt;FONT color="#999999"&gt;(... why don't we have DAX formatting here... )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;_MaxFollowerCount = 

    VAR dateMinDateInPeriod = 
        MINX(
            VALUES('Table'[id]);
            VAR dateMin = 
                CALCULATE(
                    MIN('DateTable'[Date]);
                    RELATEDTABLE(DateTable)
                )
            RETURN dateMin
        )

    VAR intMAXinPeriod = 
        MAXX(
            'Table';
            VAR intMax = MAX('Table'[Value])
            RETURN
                IF( 
                    ISBLANK(intMax) || intMax = 0;
                    101010;
                    intMax
                )
        )

    RETURN
        intMAXinPeriod&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;My problem is that:&amp;nbsp;&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;The value in the blank cells is not BLANK() nor 0 ...&amp;nbsp;&lt;BR /&gt;I never get back 101010...&lt;BR /&gt;What is my failure or missunderstanding?&lt;BR /&gt;&lt;BR /&gt;Thank you for any help.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;F.&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Nov 2022 05:08:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-test-for-blank-values-in-matrix-visual-and-replace-them/m-p/2933959#M96608</guid>
      <dc:creator>szabofe</dc:creator>
      <dc:date>2022-11-29T05:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to test for blank values in matrix visual and replace them with a previous value from the table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-test-for-blank-values-in-matrix-visual-and-replace-them/m-p/2935187#M96676</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="233537" data-lia-user-login="szabofe" class="lia-mention lia-mention-user"&gt;szabofe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share some sample data so that we could test the formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 09:07:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-test-for-blank-values-in-matrix-visual-and-replace-them/m-p/2935187#M96676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T09:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to test for blank values in matrix visual and replace them with a previous value from the table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-test-for-blank-values-in-matrix-visual-and-replace-them/m-p/2935559#M96710</link>
      <description>&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;You can download my sample from the link below.&lt;BR /&gt;&lt;A title="TestSocMed.pbix" href="https://drive.google.com/file/d/1opoHEGbaLW6eiWdoojGLBPleCJOvbIc9/view?usp=sharing" target="_blank" rel="noopener"&gt;TestSocMed.pbix&lt;/A&gt;&lt;BR /&gt;Thank you for your help.&lt;BR /&gt;I got a bit forward in the solution.&amp;nbsp;&lt;BR /&gt;Probably the direction of the iteration in the MAXX sould be on the DateTable side...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    VAR tableDateTableFiltered = 
        FILTER(
            VALUES(DateTable[Date]),
            DateTable[Date] &amp;gt;= dateMinDateInTable &amp;amp;&amp;amp; 
                DateTable[Date] &amp;lt;= dateMaxDateInTable
        )

    VAR intMAXinPeriod = 
        MAXX(
            tableDateTableFiltered,
            VAR intMax =
                    MAX('Table'[Value])
            RETURN
                COALESCE( 
                    intMax,
                    101010
                )
        )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Now the matrix looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now I'm fighting with the right measure that gives me back the previous value in the series&amp;nbsp;&lt;BR /&gt;- the value from the before column, that precedes 101010.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:43:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-test-for-blank-values-in-matrix-visual-and-replace-them/m-p/2935559#M96710</guid>
      <dc:creator>szabofe</dc:creator>
      <dc:date>2022-11-29T10:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to test for blank values in matrix visual and replace them with a previous value from the table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-test-for-blank-values-in-matrix-visual-and-replace-them/m-p/2953397#M98007</link>
      <description>&lt;P&gt;Hi Jay,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What is your opinion?&amp;nbsp;&lt;BR /&gt;Am I on the right track?&lt;BR /&gt;&lt;BR /&gt;Thanks and regards,&amp;nbsp;&lt;BR /&gt;F.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 08:29:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-test-for-blank-values-in-matrix-visual-and-replace-them/m-p/2953397#M98007</guid>
      <dc:creator>szabofe</dc:creator>
      <dc:date>2022-12-07T08:29:48Z</dc:date>
    </item>
  </channel>
</rss>

