<?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 access cell values from table data view? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-access-cell-values-from-table-data-view/m-p/1672638#M27909</link>
    <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;The details of the &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; data view mapping are &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/dataview-mappings?WT.mc_id=DP-MVP-5003712#table-data-mapping" target="_self"&gt;supplied in the docs&lt;/A&gt;, including some output based on a sample dataset, but to break this down further:&lt;/P&gt;
&lt;P&gt;You can access rows as &lt;FONT face="courier new,courier"&gt;table.rows[x]&lt;/FONT&gt; where x is a 0-based index, exactly like a JavaScript array.&lt;/P&gt;
&lt;P&gt;Each row is an array of column values, so &lt;FONT face="courier new,courier"&gt;table.rows[x][y]&lt;/FONT&gt;, where y is the index of the column you want the value for.&lt;/P&gt;
&lt;P&gt;If you need to know which index represents which column, the column metadata is in the &lt;FONT face="courier new,courier"&gt;table.columns&lt;/FONT&gt; array. The index of each item corresponds with the index in the resulting &lt;FONT face="courier new,courier"&gt;rows&lt;/FONT&gt; array.&lt;/P&gt;
&lt;P&gt;So, for example if your &lt;FONT face="courier new,courier"&gt;table.columns[0]&lt;/FONT&gt; entry represents &lt;FONT face="courier new,courier"&gt;'Jahr'&lt;/FONT&gt; then &lt;FONT face="courier new,courier"&gt;table.rows[x].[0]&lt;/FONT&gt; will be the value of &lt;FONT face="courier new,courier"&gt;'Jahr'&lt;/FONT&gt; for the given row entry.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 19:48:12 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2021-02-17T19:48:12Z</dc:date>
    <item>
      <title>How to access cell values from table data view?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-access-cell-values-from-table-data-view/m-p/1669861#M27884</link>
      <description>&lt;P&gt;I've got a simple table from which I want to get some values by accessing the table cells via row index and column index.&lt;/P&gt;&lt;P&gt;Unfortunately I've got no clue how I can achieve this...&lt;/P&gt;&lt;P&gt;I'm messing around in visual.ts with some TS code, but don't know what properties of the table dataview I have to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it even possible with the table dataview? Or do I really have to go the categorical way?&lt;/P&gt;&lt;P&gt;I don't need any aggregation (like sum), just the values...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is welcome, thanks in advance!&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="Karl83_0-1613492254080.png" style="width: 133px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/455936i3D797A0007321136/image-dimensions/133x137?v=v2" width="133" height="137" role="button" title="Karl83_0-1613492254080.png" alt="Karl83_0-1613492254080.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Karl83_1-1613492294915.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/455937i01C3FEFE8BB5652C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Karl83_1-1613492294915.png" alt="Karl83_1-1613492294915.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Karl83_2-1613492389778.png" style="width: 568px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/455939i8D8826D64C74C709/image-dimensions/568x54?v=v2" width="568" height="54" role="button" title="Karl83_2-1613492389778.png" alt="Karl83_2-1613492389778.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 16:23:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-access-cell-values-from-table-data-view/m-p/1669861#M27884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-16T16:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to access cell values from table data view?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-access-cell-values-from-table-data-view/m-p/1672638#M27909</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;The details of the &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; data view mapping are &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/dataview-mappings?WT.mc_id=DP-MVP-5003712#table-data-mapping" target="_self"&gt;supplied in the docs&lt;/A&gt;, including some output based on a sample dataset, but to break this down further:&lt;/P&gt;
&lt;P&gt;You can access rows as &lt;FONT face="courier new,courier"&gt;table.rows[x]&lt;/FONT&gt; where x is a 0-based index, exactly like a JavaScript array.&lt;/P&gt;
&lt;P&gt;Each row is an array of column values, so &lt;FONT face="courier new,courier"&gt;table.rows[x][y]&lt;/FONT&gt;, where y is the index of the column you want the value for.&lt;/P&gt;
&lt;P&gt;If you need to know which index represents which column, the column metadata is in the &lt;FONT face="courier new,courier"&gt;table.columns&lt;/FONT&gt; array. The index of each item corresponds with the index in the resulting &lt;FONT face="courier new,courier"&gt;rows&lt;/FONT&gt; array.&lt;/P&gt;
&lt;P&gt;So, for example if your &lt;FONT face="courier new,courier"&gt;table.columns[0]&lt;/FONT&gt; entry represents &lt;FONT face="courier new,courier"&gt;'Jahr'&lt;/FONT&gt; then &lt;FONT face="courier new,courier"&gt;table.rows[x].[0]&lt;/FONT&gt; will be the value of &lt;FONT face="courier new,courier"&gt;'Jahr'&lt;/FONT&gt; for the given row entry.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 19:48:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-access-cell-values-from-table-data-view/m-p/1672638#M27909</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-02-17T19:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to access cell values from table data view?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-access-cell-values-from-table-data-view/m-p/1674628#M27938</link>
      <description>&lt;P&gt;That helped. Thank you, dm-p!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 11:55:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-access-cell-values-from-table-data-view/m-p/1674628#M27938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-18T11:55:34Z</dc:date>
    </item>
  </channel>
</rss>

