<?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 Can we Add/Remove data roles (defined in capabilities.json) dynamically in custom visual script ? in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-Add-Remove-data-roles-defined-in-capabilities-json/m-p/3039869#M6681</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a power BI custom visual developer. I have defined two data roles (sections) in capabilities.json of my custom visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So below is my question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we Add/Remove data roles (defined in capabilities.json) dynamically in custom visual script ? In below image there are two sections "Category Data" and "Drilling Data" sections, I want to show drilling data if user checks "Enable Drilling" option in property window of my custom visual, can I achieve this behaviour in Power BI custom visual ? If yes, please guide me how can I get this behaviour ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tanveer Hamid.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 10:19:19 GMT</pubDate>
    <dc:creator>Hamid_Son</dc:creator>
    <dc:date>2023-01-24T10:19:19Z</dc:date>
    <item>
      <title>Can we Add/Remove data roles (defined in capabilities.json) dynamically in custom visual script ?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-Add-Remove-data-roles-defined-in-capabilities-json/m-p/3039869#M6681</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a power BI custom visual developer. I have defined two data roles (sections) in capabilities.json of my custom visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So below is my question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we Add/Remove data roles (defined in capabilities.json) dynamically in custom visual script ? In below image there are two sections "Category Data" and "Drilling Data" sections, I want to show drilling data if user checks "Enable Drilling" option in property window of my custom visual, can I achieve this behaviour in Power BI custom visual ? If yes, please guide me how can I get this behaviour ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tanveer Hamid.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 10:19:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Can-we-Add-Remove-data-roles-defined-in-capabilities-json/m-p/3039869#M6681</guid>
      <dc:creator>Hamid_Son</dc:creator>
      <dc:date>2023-01-24T10:19:19Z</dc:date>
    </item>
  </channel>
</rss>

