<?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 table - dynamic column name in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/831228#M2694</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I'm not an expert of R, however I can recommend you to investigate R code of other visuals to look for the answer, as &lt;A href="https://github.com/microsoft/powerbi-visuals-funnel/blob/master/script.r" target="_self"&gt;this one&lt;/A&gt;, for instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 11:21:38 GMT</pubDate>
    <dc:creator>v-evelk</dc:creator>
    <dc:date>2019-10-29T11:21:38Z</dc:date>
    <item>
      <title>R table - dynamic column name</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/830487#M2691</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a table visual in R for wich the name of a specific colum must get a value from a measure. I'm new to R but until now I could manage to rename a colum and obtain a new name using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;library(gridExtra)
colnames(dataset)[colnames(dataset)=="TotalBase"] &amp;lt;- "NewName"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the original name "TotalBase" was transformed into the "NewName".&lt;/P&gt;&lt;P&gt;But how could I pass a measure value?&lt;/P&gt;&lt;P&gt;Is it possible to achieve something like this?:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;colnames(dataset)[colnames(dataset)=="TotalBase"] &amp;lt;- Table[Measure]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Lucian&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 21:10:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/830487#M2691</guid>
      <dc:creator>Lucian</dc:creator>
      <dc:date>2019-10-28T21:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: R table - dynamic column name</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/831228#M2694</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I'm not an expert of R, however I can recommend you to investigate R code of other visuals to look for the answer, as &lt;A href="https://github.com/microsoft/powerbi-visuals-funnel/blob/master/script.r" target="_self"&gt;this one&lt;/A&gt;, for instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 11:21:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/831228#M2694</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-10-29T11:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: R table - dynamic column name</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/832982#M2705</link>
      <description>&lt;P&gt;Hi @&lt;A title="" href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/112988" target="_self"&gt;&lt;SPAN&gt;v-evelk&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thank you for your time. Unfortunately I'm not an R expert too... &lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt; and the recommended code is way to complex to find a "clue" to solve my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe Microsoft will publish some tutorials specifically designed for R &amp;amp; Power BI...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Lucian&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 19:31:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/832982#M2705</guid>
      <dc:creator>Lucian</dc:creator>
      <dc:date>2019-10-30T19:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: R table - dynamic column name</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/833688#M2707</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Lucian,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Technically, there aren't so many Power BI aspects in R code for R visual. Only a couple of them is reading of &lt;A href="https://github.com/microsoft/powerbi-visuals-funnel/blob/97602a3aa60f58eb3fcc544869d23bc97422be97/script.r#L24" target="_self"&gt;format panel options&lt;/A&gt; and &lt;A href="https://github.com/microsoft/powerbi-visuals-funnel/blob/97602a3aa60f58eb3fcc544869d23bc97422be97/script.r#L316" target="_self"&gt;buckets to build dataset&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In fact, to write R visual, you should know only R language.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to figure out how to work with dataset, you should learn R, may be &lt;A href="https://en.wikibooks.org/wiki/R_Programming/Working_with_data_frames" target="_self"&gt;this&lt;/A&gt; and &lt;A href="https://paldhous.github.io/ucb/2016/dataviz/week7.html" target="_self"&gt;that&lt;/A&gt; articles will be useful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 09:18:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/833688#M2707</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-10-31T09:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: R table - dynamic column name</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/834253#M2708</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;FONT&gt;@v-eve&lt;/FONT&gt;lk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the recomended materials... There are good starting points in learning R.&lt;/P&gt;&lt;P&gt;Until then... I hope I will get enough votes on the &lt;A title="Improved table visual - dynamic column names" href="https://community.powerbi.com/t5/Custom-Visuals-Ideas/Improved-table-visual-dynamic-column-names/idi-p/823759" target="_blank" rel="noopener"&gt;Improved table visual - dynamic column names&lt;/A&gt; ideea so it would be implemented without needing R.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Lucian&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 19:05:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/R-table-dynamic-column-name/m-p/834253#M2708</guid>
      <dc:creator>Lucian</dc:creator>
      <dc:date>2019-10-31T19:05:30Z</dc:date>
    </item>
  </channel>
</rss>

