<?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 getting null value when console.log options in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/getting-null-value-when-console-log-options/m-p/3998481#M9954</link>
    <description>&lt;P&gt;&lt;A href="https://github.com/anjucvijayan/custom-visual/blob/main/visual.ts" target="_blank"&gt;https://github.com/anjucvijayan/custom-visual/blob/main/visual.ts&lt;/A&gt;&amp;nbsp; &amp;nbsp;--visual.ts file&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/anjucvijayan/custom-visual/blob/main/capabilities.json" target="_blank"&gt;https://github.com/anjucvijayan/custom-visual/blob/main/capabilities.json&lt;/A&gt;&amp;nbsp;--- capabilities.json file&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i console.log options then it shows null values in data view . i have table view.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="18.06.2024_20.16.32_REC.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1118490iA65A0E4EB6FB6EFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="18.06.2024_20.16.32_REC.png" alt="18.06.2024_20.16.32_REC.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 14:47:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-18T14:47:20Z</dc:date>
    <item>
      <title>getting null value when console.log options</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/getting-null-value-when-console-log-options/m-p/3998481#M9954</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/anjucvijayan/custom-visual/blob/main/visual.ts" target="_blank"&gt;https://github.com/anjucvijayan/custom-visual/blob/main/visual.ts&lt;/A&gt;&amp;nbsp; &amp;nbsp;--visual.ts file&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/anjucvijayan/custom-visual/blob/main/capabilities.json" target="_blank"&gt;https://github.com/anjucvijayan/custom-visual/blob/main/capabilities.json&lt;/A&gt;&amp;nbsp;--- capabilities.json file&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i console.log options then it shows null values in data view . i have table view.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="18.06.2024_20.16.32_REC.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1118490iA65A0E4EB6FB6EFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="18.06.2024_20.16.32_REC.png" alt="18.06.2024_20.16.32_REC.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 14:47:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/getting-null-value-when-console-log-options/m-p/3998481#M9954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-18T14:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: getting null value when console.log options</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/getting-null-value-when-console-log-options/m-p/3999035#M9956</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The linked repo doesn't look like a complete visual project to be able to tell, but from the looks of things, you're using a &lt;FONT face="courier new,courier"&gt;scriptResult&lt;/FONT&gt; mapping, which implies you're creating an R visual. In this case, the &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; data view mapping isn't populated, as expected. The dataset is dispatched to your R script by Power BI, and the results come back in &lt;FONT face="courier new,courier"&gt;dataViews[0].scriptResult&lt;/FONT&gt; (which is populated, as expected). In this case, you can only access the raw data before it is sent to the R runtime in your R script, not the visual's (minimal) TypeScript code (which only can evaluate the returned output).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The dedicated &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; data view mapping is only available for a TypeScript visual, and if this is what you intend to set up, you should set it &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/dataview-mappings#mapping-tables" target="_self"&gt;up as per the documentation&lt;/A&gt;. This will then be available as you expect (but you won't be able to use R). I also &lt;A href="https://coacervo.co/examples/table-dv-simple" target="_self"&gt;wrote an article some years ago&lt;/A&gt; with a simple example of the table data view mapping for TypeScript, which may be helpful - this is a few years old, and the SDK has moved on a bit since then, but the principles should still be similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 00:54:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/getting-null-value-when-console-log-options/m-p/3999035#M9956</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2024-06-19T00:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: getting null value when console.log options</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/getting-null-value-when-console-log-options/m-p/3999382#M9959</link>
      <description>&lt;P&gt;actually i need to create a histogram customvisual. so i need to add selection to the visual . so when i debug the code data view is not getting.&amp;nbsp; can't we add selection to r powered visual. if so on which file we need to edit. only on visual.ts file&amp;nbsp;&lt;BR /&gt;i have refered&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/visuals-interactions" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/developer/visuals/visuals-interactions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/selection-api" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/developer/visuals/selection-api&lt;/A&gt;&amp;nbsp; &amp;nbsp;these two documentations.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;do we need to create histogram using visual.ts file&lt;BR /&gt;can you please share the steps to add visual interaction to my visual&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 05:10:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/getting-null-value-when-console-log-options/m-p/3999382#M9959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-19T05:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: getting null value when console.log options</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/getting-null-value-when-console-log-options/m-p/3999397#M9960</link>
      <description>&lt;P&gt;If you're creating an R visual (which it looks like you're doing based on your capabilities), you do not have access to the table data view, and you cannot add selection. You can only get access to the script output, via the scriptResult object, meaning that you will not see the original dataset sent to the visual. This is only accessible to your R script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For access to the table data view mapping and the interactivity APIs, you will need to develop the visual using TypeScript rather than R. You will also need to consider that selection IDs need to be reconciled back to the original data view row sent by Power BI (as Power BI generates the selectors and handles the interactivity on a visual's behalf).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will also need to bear in mind that if you are transforming your source data into aggregated data, for display, your final result set might nto match this and you will very likely get unexpected results (unless you track and group your originally sent rows to the output and create selectors for all rows, so that when you cross filter these can all be sent back to Power BI to resolve).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 05:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/getting-null-value-when-console-log-options/m-p/3999397#M9960</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2024-06-19T05:11:59Z</dc:date>
    </item>
  </channel>
</rss>

