<?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: Masking Name Data using DAX Filter for Row Level Security in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4409075#M175083</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="929714" data-lia-user-login="faikar" class="lia-mention lia-mention-user"&gt;faikar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;=IF(&lt;BR /&gt;UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME], 1 ) ) &amp;gt;= 65 &amp;amp;&amp;amp; UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME], 1 ) ) &amp;lt;= 90 || &lt;BR /&gt;UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME], 1 ) ) &amp;gt;= 97 &amp;amp;&amp;amp; UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME], 1 ) ) &amp;lt;= 122,&lt;BR /&gt;LEFT(DIM_TRAVELEMPLOYEE[VKTPNAME], 3) &amp;amp; REPT("*", LEN(DIM_TRAVELEMPLOYEE[VKTPNAME]) - 3),&lt;BR /&gt;"NO DATA"&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Masking Logic: The formula checks whether the first character of VKTPNAME&amp;nbsp;falls within the uppercase or lowercase alphabetic range. If it does, it masks the name except for the first three characters, otherwise, it returns "NO DATA."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please mark this as solution if it helps you. Appreciate Kudos.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 12:50:46 GMT</pubDate>
    <dc:creator>FarhanJeelani</dc:creator>
    <dc:date>2025-02-13T12:50:46Z</dc:date>
    <item>
      <title>Masking Name Data using DAX Filter for Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4408354#M175052</link>
      <description>&lt;P&gt;How to mask name data using DAX Filter for Row Level Security in SQL Server Analysis Services Tabular databases? I used this DAX filter but all the data not shown after applying this DAX:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=IF(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME]; 1 ) ) &amp;gt;= 65 &amp;amp;&amp;amp; UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME]; 1 ) ) &amp;lt;= 90 ||&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME]; 1 ) ) &amp;gt;= 97 &amp;amp;&amp;amp; UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME]; 1 ) ) &amp;lt;= 122;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEFT(DIM_TRAVELEMPLOYEE[VKTPNAME]; 3) &amp;amp; REPT("*"; LEN(DIM_TRAVELEMPLOYEE[VKTPNAME]) - 3);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "NO DATA"&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Faikar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 06:45:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4408354#M175052</guid>
      <dc:creator>faikar</dc:creator>
      <dc:date>2025-02-13T06:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Masking Name Data using DAX Filter for Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4408471#M175054</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="929714" data-lia-user-login="faikar" class="lia-mention lia-mention-user"&gt;faikar&lt;/a&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;dax&lt;BR /&gt;=IF(&lt;BR /&gt;(UNICODE(LEFT(DIM_TRAVELEMPLOYEE[VKTPNAME], 1)) &amp;gt;= 65 &amp;amp;&amp;amp; UNICODE(LEFT(DIM_TRAVELEMPLOYEE[VKTPNAME], 1)) &amp;lt;= 90) || &lt;BR /&gt;(UNICODE(LEFT(DIM_TRAVELEMPLOYEE[VKTPNAME], 1)) &amp;gt;= 97 &amp;amp;&amp;amp; UNICODE(LEFT(DIM_TRAVELEMPLOYEE[VKTPNAME], 1)) &amp;lt;= 122),&lt;BR /&gt;LEFT(DIM_TRAVELEMPLOYEE[VKTPNAME], 3) &amp;amp; REPT("*", LEN(DIM_TRAVELEMPLOYEE[VKTPNAME]) - 3),&lt;BR /&gt;"NO DATA"&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 07:12:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4408471#M175054</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-13T07:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Masking Name Data using DAX Filter for Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4409075#M175083</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="929714" data-lia-user-login="faikar" class="lia-mention lia-mention-user"&gt;faikar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;=IF(&lt;BR /&gt;UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME], 1 ) ) &amp;gt;= 65 &amp;amp;&amp;amp; UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME], 1 ) ) &amp;lt;= 90 || &lt;BR /&gt;UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME], 1 ) ) &amp;gt;= 97 &amp;amp;&amp;amp; UNICODE( LEFT( DIM_TRAVELEMPLOYEE[VKTPNAME], 1 ) ) &amp;lt;= 122,&lt;BR /&gt;LEFT(DIM_TRAVELEMPLOYEE[VKTPNAME], 3) &amp;amp; REPT("*", LEN(DIM_TRAVELEMPLOYEE[VKTPNAME]) - 3),&lt;BR /&gt;"NO DATA"&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Masking Logic: The formula checks whether the first character of VKTPNAME&amp;nbsp;falls within the uppercase or lowercase alphabetic range. If it does, it masks the name except for the first three characters, otherwise, it returns "NO DATA."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please mark this as solution if it helps you. Appreciate Kudos.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 12:50:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4409075#M175083</guid>
      <dc:creator>FarhanJeelani</dc:creator>
      <dc:date>2025-02-13T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Masking Name Data using DAX Filter for Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4410257#M175146</link>
      <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="929714" data-lia-user-login="faikar" class="lia-mention lia-mention-user"&gt;faikar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;If these also don't help, please share more detailed information and description to help us clarify your scenario to test.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 05:27:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4410257#M175146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-14T05:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Masking Name Data using DAX Filter for Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4410416#M175149</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="929714" data-lia-user-login="faikar" class="lia-mention lia-mention-user"&gt;faikar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like, You are checking whether the first letter of DIM_TRAVELEMPLOYEE[VKTPNAME] is a letter between A-Z (upper or lower case), but this logic may cause the formula to behave unexpectedly. If you want to apply a mask across all rows, this condition might not be returning results as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An&amp;nbsp;updated version of your DAX formula that would mask the names but allow the first three characters to be visible, and replace the rest with asterisks&amp;nbsp; can be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=IF(&lt;BR /&gt;LEN(DIM_TRAVELEMPLOYEE[VKTPNAME]) &amp;gt; 3, //&amp;nbsp;if the name has more than 3 characters&lt;BR /&gt;LEFT(DIM_TRAVELEMPLOYEE[VKTPNAME], 3) &amp;amp; REPT("*", LEN(DIM_TRAVELEMPLOYEE[VKTPNAME]) - 3), //&amp;nbsp;first three characters visible and&amp;nbsp;remaining characters are replaced with asterisks&lt;BR /&gt;DIM_TRAVELEMPLOYEE[VKTPNAME] // If name is less than 3 characters, show as is&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;update this dax as per requirement and use in security expression.&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Did I answer your query ? Mark this as solution if this has solved your issue, Kudos are appreciated.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;Neeraj&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 06:45:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Masking-Name-Data-using-DAX-Filter-for-Row-Level-Security/m-p/4410416#M175149</guid>
      <dc:creator>divyed</dc:creator>
      <dc:date>2025-02-14T06:45:57Z</dc:date>
    </item>
  </channel>
</rss>

