<?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 How to hide Phone numbers, but the last 4 digits in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-hide-Phone-numbers-but-the-last-4-digits/m-p/3356022#M43663</link>
    <description>&lt;P&gt;Dear Memebers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;A quick question came-up and it's about data masking. I'm working on a project which requires to replace the 6 digits of all customers phone numbers but not the last 4. However, the phone number should be searchable when someone types the whole number. It's also required that if the report is printed, phone numbers should be masked and only the last 4 digits should be visible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex. A phone number like 777-777-7777 should be XXX-XXX-7777. But, when someone is searching and using the full number on the PowerBi report- 777-777-7777 it should result to a success and show the rest of the coulmns in the report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you help here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 20:11:20 GMT</pubDate>
    <dc:creator>RBPI</dc:creator>
    <dc:date>2023-07-28T20:11:20Z</dc:date>
    <item>
      <title>How to hide Phone numbers, but the last 4 digits</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-hide-Phone-numbers-but-the-last-4-digits/m-p/3356022#M43663</link>
      <description>&lt;P&gt;Dear Memebers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;A quick question came-up and it's about data masking. I'm working on a project which requires to replace the 6 digits of all customers phone numbers but not the last 4. However, the phone number should be searchable when someone types the whole number. It's also required that if the report is printed, phone numbers should be masked and only the last 4 digits should be visible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex. A phone number like 777-777-7777 should be XXX-XXX-7777. But, when someone is searching and using the full number on the PowerBi report- 777-777-7777 it should result to a success and show the rest of the coulmns in the report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you help here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 20:11:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-hide-Phone-numbers-but-the-last-4-digits/m-p/3356022#M43663</guid>
      <dc:creator>RBPI</dc:creator>
      <dc:date>2023-07-28T20:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide Phone numbers, but the last 4 digits</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-hide-Phone-numbers-but-the-last-4-digits/m-p/3361554#M43703</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/595874"&gt;@RBPI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try to create a new custom column with below DAX expression,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Masked Phone Number = SUBSTITUTE(Phones[Phone Number], LEFT(Phones[Phone Number], LEN(Phones[Phone Number])-4),"XXX-XXX")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to the below screenshot for the same,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SamInogic_6-1690973559906.png" style="width: 1439px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/950107iCA3A1F986BFCFC79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SamInogic_6-1690973559906.png" alt="SamInogic_6-1690973559906.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Inogic Professional Services Division&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Drop an email at &lt;/SPAN&gt;&lt;A href="mailto:crm@inogic.com" target="_blank"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Services:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.inogic.com/services/" target="_blank"&gt;http://www.inogic.com/services/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.inogic.com/blog/" target="_blank"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 10:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-hide-Phone-numbers-but-the-last-4-digits/m-p/3361554#M43703</guid>
      <dc:creator>SamInogic</dc:creator>
      <dc:date>2023-08-02T10:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide Phone numbers, but the last 4 digits</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-hide-Phone-numbers-but-the-last-4-digits/m-p/3364006#M43722</link>
      <description>&lt;P&gt;@samlnogi - Thank you very much for your input here. The function you recommended worked, but I also figured it out with DAX Replace Function. I'll accept your recommandation as a solution to this. Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 16:14:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-hide-Phone-numbers-but-the-last-4-digits/m-p/3364006#M43722</guid>
      <dc:creator>RBPI</dc:creator>
      <dc:date>2023-08-03T16:14:10Z</dc:date>
    </item>
  </channel>
</rss>

