<?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: R custom Visual Filter and Interactions in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/3041965#M40893</link>
    <description>&lt;P&gt;The R-Based custom visual can't filter/highlight other visuals unfortunately. This can only be done using the standard custom visuals&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 07:52:11 GMT</pubDate>
    <dc:creator>andrjohns</dc:creator>
    <dc:date>2023-01-25T07:52:11Z</dc:date>
    <item>
      <title>R custom Visual Filter and Interactions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/2378679#M34805</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;currently, the standard visuals and custom visuals in the store do not meet the requirements of my internal customer. I looked around and found out, that we can build custom visuals via R script, which I happily tried out, as in python and R I can make the visuals, which meet the requirement. I have two issues.&lt;BR /&gt;&lt;BR /&gt;Issue 1:&lt;BR /&gt;&lt;BR /&gt;After finally making the visual work, I wanted to filter the visual with slicers, in which case most work. From my observations, those worked, which were loaded directly from the server. But as soon I use calculated columns, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error Message:
R script error.
Loading required package: xml2
Loading required package: htmlwidgets
Loading required package: ggplot2
Loading required package: lubridate

Attaching package: 'lubridate'

The following objects are masked from 'package:base':

    date, intersect, setdiff, union

Loading required package: data.table

Attaching package: 'data.table'

The following objects are masked from 'package:lubridate':

    hour, isoweek, mday, minute, month, quarter, second, wday, week,
    yday, year

Loading required package: magrittr
Loading required package: plotly

Attaching package: 'plotly'

The following object is masked from 'package:ggplot2':

    last_plot

The following object is masked from 'package:stats':

    filter

The following object is masked from 'package:graphics':

    layout

Error: Discrete value supplied to continuous scale
In addition: There were 12 warnings (use warnings() to see them)
Execution halted&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The calculated column is simply looking into Measurements and differentiate if it is the last or one of the many previous measurements.&lt;BR /&gt;&lt;BR /&gt;Is Last Measurement =&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;'[MeasurementInstance] == [MeasurementInstanceTotal],&lt;BR /&gt;"Last", "Other"&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;The weird thing is, that "Other" works and the custom visual is filtered, while "Last" doesn't work and give me the above error.&lt;BR /&gt;&lt;BR /&gt;Issue 2:&lt;BR /&gt;&lt;BR /&gt;While it's nice I can select each point in a scatter plot and "zoom" / filter within the visual, I can't affect other visuals e.g. a histogram or a table with some identifiers or cards with some KPIs.&lt;BR /&gt;&lt;BR /&gt;I already looked into the "edit interactions" and all settings for the other visuals are set to "filter", but it doesn't work when I select something inside the r custom visual (made with Plotly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scatter Plot is my R custom visual which should filter also the histogram at the left side&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="boboroo_1-1646657478040.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/680218iEA0640E1FBA37FA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="boboroo_1-1646657478040.png" alt="boboroo_1-1646657478040.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After selecting some values within the&amp;nbsp; it zooms in, but will not affect the histogram at the left side&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="boboroo_2-1646657583831.png" style="width: 279px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/680219i5F25D3607D8CED1B/image-dimensions/279x175?v=v2" width="279" height="175" role="button" title="boboroo_2-1646657583831.png" alt="boboroo_2-1646657583831.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="boboroo_3-1646657594971.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/680220i4AD92C3EB4F80102/image-size/medium?v=v2&amp;amp;px=400" role="button" title="boboroo_3-1646657594971.png" alt="boboroo_3-1646657594971.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Any ideas on how to solve those two.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 12:54:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/2378679#M34805</guid>
      <dc:creator>boboroo</dc:creator>
      <dc:date>2022-03-07T12:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: R custom Visual Filter and Interactions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/2384602#M34860</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/332653"&gt;@boboroo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.The calculated column is static, while the measure is dynamic, so the measure cannot be referenced correctly in the calculated column.&lt;/P&gt;
&lt;P&gt;Please change this calculated column to a measure. If you need to be used as a slicer, you need to create the correct calculated column. Please do not reference the measure in the calculated column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.MS only provide APIs to support these operations for TypeScript visuals, and not for R.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You may try to package R Code into Power BI Custom Visual.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/funnel-plot-from-r#create-an-r-powered-visual-and-package-in-r-code" target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/developer/visuals/funnel-plot-from-r#create-an-r-powered-visual-and-package-in-r-code&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://towardsdatascience.com/interactive-power-bi-custom-visuals-with-r-a6a4ac998710" target="_self"&gt;https://towardsdatascience.com/interactive-power-bi-custom-visuals-with-r-a6a4ac998710&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 02:32:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/2384602#M34860</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-03-10T02:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: R custom Visual Filter and Interactions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/3011200#M40651</link>
      <description>&lt;P&gt;Could you please give an example on how to do what you described in point 2? I have some R Code that i package to a visual exactly following the way described by the link you provided but even with a build custom R Visual and even after changing the configuration files to accept filters (from the IFilter documentary MS support site) it will not filter my other native visuals to whatever i select in R Custom Visuals (i use R plotly as main library). If needed i can share my project.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 13:10:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/3011200#M40651</guid>
      <dc:creator>MARKZI</dc:creator>
      <dc:date>2023-01-10T13:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: R custom Visual Filter and Interactions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/3011203#M40652</link>
      <description>&lt;P&gt;did you find a solution for your open point 2? I'm also looking for a solution here.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 13:12:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/3011203#M40652</guid>
      <dc:creator>MARKZI</dc:creator>
      <dc:date>2023-01-10T13:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: R custom Visual Filter and Interactions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/3041965#M40893</link>
      <description>&lt;P&gt;The R-Based custom visual can't filter/highlight other visuals unfortunately. This can only be done using the standard custom visuals&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 07:52:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/R-custom-Visual-Filter-and-Interactions/m-p/3041965#M40893</guid>
      <dc:creator>andrjohns</dc:creator>
      <dc:date>2023-01-25T07:52:11Z</dc:date>
    </item>
  </channel>
</rss>

