<?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 Lock Fields in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Lock-Fields/m-p/926435#M2975</link>
    <description>&lt;P&gt;Team wants me email and share my native BI Desktop. Here, I do not want to show my all Measures i built up.&lt;/P&gt;&lt;P&gt;Is there any fuction to lock the Fields? with something like Password and so on.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2020 02:32:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-10T02:32:16Z</dc:date>
    <item>
      <title>Lock Fields</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Lock-Fields/m-p/926435#M2975</link>
      <description>&lt;P&gt;Team wants me email and share my native BI Desktop. Here, I do not want to show my all Measures i built up.&lt;/P&gt;&lt;P&gt;Is there any fuction to lock the Fields? with something like Password and so on.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 02:32:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Lock-Fields/m-p/926435#M2975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-10T02:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Fields</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Lock-Fields/m-p/927673#M2983</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'll provide you with an answer in here - if you have any questions like this in future, it's probably better to post them in the &lt;A href="https://community.powerbi.com/t5/Desktop/bd-p/power-bi-designer" target="_self"&gt;Desktop&lt;/A&gt; or &lt;A href="https://community.powerbi.com/t5/Service/bd-p/power-bi-web-app" target="_self"&gt;Service&lt;/A&gt; forums. There's a much higher volume of users there that can provide you with a solution more quickly than this particular forum (which is concerned with developing custom visuals using code).&lt;/P&gt;&lt;P&gt;What you want, specifically, is not a feature of Power BI Desktop. Desktop is not designed for sharing, but rather development of reports. Sharing is managed by publishing to the Power BI Service.&lt;/P&gt;&lt;P&gt;I'm not sure why you'd not want people to see your measure code - is it more that you don't want people to edit them?&lt;/P&gt;&lt;P&gt;If the latter, depending on the technical comprehension of your users, you have a couple of "options" if you have to feel you must stick with Desktop:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Hide all measures in report view (they'll still be able to see them if they go to the data or model views).&lt;/LI&gt;&lt;LI&gt;If your purpose is to stop users editing measures, you could share the workbook on a read-only network share. Users could still view/edit measures without saving the workbook though.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If it's more a case of wanting users to be able to configure the report and visuals using Desktop, but you want the data model to remain fixed/protected, the "Power BI way" to do it is to create a shared dataset in the service :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Publish your workbook data model to the Power BI Service as a report. This will create an accompanying dataset.&lt;/LI&gt;&lt;LI&gt;Create a new workbook and live connect to the published dataset from the last step.&lt;/LI&gt;&lt;LI&gt;Users will now be able to see the model and add their own visuals using your measures, but not see the measure code underneath.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To complete, You can copy/paste the visuals from your orignial report into a new one and then clear out visuals from the original and re-publish.&lt;/P&gt;&lt;P&gt;This dataset can then have its own refresh, and if you make changes then all dependent reports will see them and get the updated data.&lt;/P&gt;&lt;P&gt;Further reading on shared datasets:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://www.blue-granite.com/blog/power-bi-shared-datasets-for-self-service-bi" target="_self"&gt;Blue Granite - Why Power BI Shared Datasets Are Critical to A Self-Service BI Implementation&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://radacad.com/power-bi-shared-datasets-what-is-it-how-does-it-work-and-why-should-you-care" target="_self"&gt;RADACAD - Power BI Shared Datasets: What is it? How does it work? and Why should you care?&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hopefully this gives you some ideas. Good luck!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;FONT size="2"&gt;If my post solves your challenge, then please consider accepting as a solution to help other forum members find the answer more quickly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 23:12:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Lock-Fields/m-p/927673#M2983</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2020-02-10T23:12:04Z</dc:date>
    </item>
  </channel>
</rss>

