<?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 does one retrieve values from Matrix dataMapping in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-does-one-retrieve-values-from-Matrix-dataMapping/m-p/223994#M7074</link>
    <description>&lt;P&gt;I actually found the answer to my question! I wanted to post here so other developers who experience this can find help to. You access the root and values via:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; &lt;SPAN&gt;matrix&lt;/SPAN&gt;.&lt;SPAN&gt;rows&lt;/SPAN&gt;.&lt;SPAN&gt;root&lt;/SPAN&gt;.&lt;SPAN&gt;children&lt;/SPAN&gt;[&lt;SPAN&gt;0&lt;/SPAN&gt;].&lt;SPAN&gt;values&lt;/SPAN&gt;[&lt;SPAN&gt;0&lt;/SPAN&gt;].&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2017 13:59:17 GMT</pubDate>
    <dc:creator>paynemiller</dc:creator>
    <dc:date>2017-08-02T13:59:17Z</dc:date>
    <item>
      <title>How does one retrieve values from Matrix dataMapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-does-one-retrieve-values-from-Matrix-dataMapping/m-p/223993#M7073</link>
      <description>&lt;P&gt;I am having trouble retrieving the actual values from a matrix data mapping. Below is the current mapping I have specified:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"dataViewMappings"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;[&lt;BR /&gt;    {&lt;BR /&gt;        &lt;SPAN&gt;"matrix"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;{&lt;BR /&gt;            &lt;SPAN&gt;"rows"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;{&lt;BR /&gt;                &lt;SPAN&gt;"select"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;[&lt;BR /&gt;                    {&lt;BR /&gt;                        &lt;SPAN&gt;"for"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;{&lt;BR /&gt;                            &lt;SPAN&gt;"in"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"row"&lt;BR /&gt;&lt;/SPAN&gt;                        }&lt;BR /&gt;                    }&lt;BR /&gt;                ]&lt;BR /&gt;            }&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;"columns"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;{&lt;BR /&gt;                &lt;SPAN&gt;"for"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;{&lt;BR /&gt;                    &lt;SPAN&gt;"in"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"column"&lt;BR /&gt;&lt;/SPAN&gt;                }&lt;BR /&gt;            }&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;"values"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;{&lt;BR /&gt;                        &lt;SPAN&gt;"for"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;{&lt;BR /&gt;                            &lt;SPAN&gt;"in"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"values"&lt;BR /&gt;&lt;/SPAN&gt;                        }&lt;BR /&gt;                    }&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;]&lt;/PRE&gt;&lt;P&gt;When I attempt to access my valueSources via&lt;/P&gt;&lt;PRE&gt;dataViews[0].matrix.valueSources[0]&lt;/PRE&gt;&lt;P&gt;All my object contains is the following:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-02 at 9.43.53 AM.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/52948i1A2CE8FE0DE2C209/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-08-02 at 9.43.53 AM.png" alt="Screen Shot 2017-08-02 at 9.43.53 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I do notice that there is a root object on both the&amp;nbsp;&lt;STRONG&gt;rows&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;columns&amp;nbsp;&lt;/STRONG&gt;that contains the values I want (see below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-02 at 9.48.39 AM.png" style="width: 282px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/52951i059C44FA9881517F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-08-02 at 9.48.39 AM.png" alt="Screen Shot 2017-08-02 at 9.48.39 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question is: how do I access the values of the matrix, my actual measures?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 13:59:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-does-one-retrieve-values-from-Matrix-dataMapping/m-p/223993#M7073</guid>
      <dc:creator>paynemiller</dc:creator>
      <dc:date>2017-08-02T13:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: How does one retrieve values from Matrix dataMapping</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-does-one-retrieve-values-from-Matrix-dataMapping/m-p/223994#M7074</link>
      <description>&lt;P&gt;I actually found the answer to my question! I wanted to post here so other developers who experience this can find help to. You access the root and values via:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; &lt;SPAN&gt;matrix&lt;/SPAN&gt;.&lt;SPAN&gt;rows&lt;/SPAN&gt;.&lt;SPAN&gt;root&lt;/SPAN&gt;.&lt;SPAN&gt;children&lt;/SPAN&gt;[&lt;SPAN&gt;0&lt;/SPAN&gt;].&lt;SPAN&gt;values&lt;/SPAN&gt;[&lt;SPAN&gt;0&lt;/SPAN&gt;].&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 13:59:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-does-one-retrieve-values-from-Matrix-dataMapping/m-p/223994#M7074</guid>
      <dc:creator>paynemiller</dc:creator>
      <dc:date>2017-08-02T13:59:17Z</dc:date>
    </item>
  </channel>
</rss>

