<?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: Custom Matrix - help needed in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Matrix-help-needed/m-p/983598#M22757</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/143436"&gt;@KG1&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I don't think you can do customize with matrix plot features.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For your scenario, I'd like to suggest you write a measure with if statement to check current row and column label to find out the score, then you can replace this score to other values based on condition.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR currRowLable =
    SELECTEDVALUE ( Table[Row] )
VAR currColLable =
    SELECTEDVALUE ( Table[Column] )
VAR _score =
    CALCULATE (
        SUM ( Table[Score] ),
        FILTER (
            ALLSELECTED ( Table ),
            [Column] IN currColLable
                &amp;amp;&amp;amp; [Row] IN currRowLable
        )
    )
RETURN
    IF ( _score &amp;gt; 10, 2, IF ( _score &amp;lt; 10 &amp;amp;&amp;amp; _score &amp;gt; 5, 1, 0 ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 08:30:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-20T08:30:03Z</dc:date>
    <item>
      <title>Custom Matrix - help needed</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Matrix-help-needed/m-p/982003#M22751</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to be able to create a matrix like this which plots a value inside a matrix based on its score.&lt;/P&gt;&lt;P&gt;Could anyone offer some advice as to whether this would be possible and how it can be done?&lt;/P&gt;&lt;P&gt;Many Thanks&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Heatmap.JPG" style="width: 200px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/247831i6940A291520184A0/image-size/small?v=v2&amp;amp;px=200" role="button" title="Heatmap.JPG" alt="Heatmap.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 12:10:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Matrix-help-needed/m-p/982003#M22751</guid>
      <dc:creator>KG1</dc:creator>
      <dc:date>2020-03-19T12:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Matrix - help needed</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Matrix-help-needed/m-p/983598#M22757</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/143436"&gt;@KG1&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I don't think you can do customize with matrix plot features.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For your scenario, I'd like to suggest you write a measure with if statement to check current row and column label to find out the score, then you can replace this score to other values based on condition.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR currRowLable =
    SELECTEDVALUE ( Table[Row] )
VAR currColLable =
    SELECTEDVALUE ( Table[Column] )
VAR _score =
    CALCULATE (
        SUM ( Table[Score] ),
        FILTER (
            ALLSELECTED ( Table ),
            [Column] IN currColLable
                &amp;amp;&amp;amp; [Row] IN currRowLable
        )
    )
RETURN
    IF ( _score &amp;gt; 10, 2, IF ( _score &amp;lt; 10 &amp;amp;&amp;amp; _score &amp;gt; 5, 1, 0 ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 08:30:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Matrix-help-needed/m-p/983598#M22757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-20T08:30:03Z</dc:date>
    </item>
  </channel>
</rss>

