<?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: Row level Security DAX expression in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-DAX-expression/m-p/875855#M7350</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Please use containsstring function like below&lt;img /&gt;&lt;/P&gt;&lt;P&gt;CONTAINSSTRING([affected organizations],"Morgan Stanley")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Second approach is to create a calculated column&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column = IF(SEARCH("Morgan Stanley",'Table'[Name],1,0)&amp;gt;0,TRUE(),FALSE())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and use this column in filter expression&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 16 Dec 2019 05:44:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-12-16T05:44:59Z</dc:date>
    <item>
      <title>Row level Security DAX expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-DAX-expression/m-p/873440#M7273</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Applying row level security is simple when there is just one item present in a cell. But how do you make a DAX expression for &lt;LI-MESSAGE title="Row-Level Security" uid="808644" url="https://community.powerbi.com/t5/Service/Row-Level-Security/m-p/808644#U808644" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;when the items are comma seprated. Like in my situation, I want to apply &lt;EM&gt;row level security&lt;/EM&gt; on the "Affected organizations" column where if there is "&lt;STRONG&gt;Morgan Stanley&lt;/STRONG&gt;" present then only it shows to a perticular set of users.&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;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:26:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-DAX-expression/m-p/873440#M7273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-12T13:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Row level Security DAX expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-DAX-expression/m-p/875855#M7350</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Please use containsstring function like below&lt;img /&gt;&lt;/P&gt;&lt;P&gt;CONTAINSSTRING([affected organizations],"Morgan Stanley")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Second approach is to create a calculated column&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column = IF(SEARCH("Morgan Stanley",'Table'[Name],1,0)&amp;gt;0,TRUE(),FALSE())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and use this column in filter expression&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Dec 2019 05:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-DAX-expression/m-p/875855#M7350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-16T05:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Row level Security DAX expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-DAX-expression/m-p/876222#M7358</link>
      <description>thanks Anonymous&lt;/LI-USER&gt; for this solutions. Works like a charm. Just to add i was also found a similar solution online and i used the following condition before saw your reply: ISNumber(Search("Morgan Stanley",Tablename[Column],,Blank()))</description>
      <pubDate>Mon, 16 Dec 2019 10:19:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Row-level-Security-DAX-expression/m-p/876222#M7358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-16T10:19:11Z</dc:date>
    </item>
  </channel>
</rss>

