<?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 OLAP cube MDX authorization in SAS Web Report Studio</title>
    <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/OLAP-cube-MDX-authorization/m-p/398793#M2407</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to apologise in advance for any weird grammer that may occur - this is not my native language.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if what I/we want/need is possible but here we go:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was tasked with remanufacturing some reports which so far have been sent out manually as Excel-Sheets. We intend to use a WRS-Report based on an OLAP cube instead in their place. However, the data inside is fairly sensitive which means I need to filter by User-ID in regards to who gets to see what report. This is going to happen via User-groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now my problem is following:&lt;/P&gt;&lt;P&gt;There is a 3-tier hierarchy regarding the divisions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tier1 could be "A" and "B".&lt;/P&gt;&lt;P&gt;Tier2 could be "AA", "BB" and "CC"&lt;/P&gt;&lt;P&gt;Tier3 could be "AAA", "BBB", "CCC", "DDD", etc all the way to "KKK".&lt;/P&gt;&lt;P&gt;However, the hierarchy doesnt look neat like in Ex.1 but more like Ex.2:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example1.png" style="width: 257px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15419iC6487CC771215A2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example1.png" alt="Example1.png" /&gt;&lt;/span&gt;(Ex.1) &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example2.png" style="width: 254px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15420i5DED81A84680B9ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example2.png" alt="Example2.png" /&gt;&lt;/span&gt;(Ex.2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I've tried (and failed) to ONLY give access to the (DDD)-report without giving access to the (A)-report and (A-empty) report as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My best-working try so far has been achieved with the following MDX expression in the SAS OLAP Cube Studio, however I'd like (and&amp;nbsp; need) to prevent the User to see anything in the "empty" division.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;[Abteilung].[Abteilung].[Alle Abteilung],&lt;BR /&gt;[Abteilung].[Abteilung].[Alle Abteilung].[A],&lt;BR /&gt;[Abteilung].[Abteilung].[Alle Abteilung].[A].[&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;BR /&gt;[Abteilung].[Abteilung].[Alle Abteilung].[A].[&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ].[DDD]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When leaving out the third line inside the {}, all I see is the A-report but with no way to as well look at the DDD-report.&lt;/P&gt;&lt;P&gt;There are also cases when the recipients of the reports may look at AA and CCC (but not A or AAA/BBB) or B and III (not BB or HHH).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So: Is it at all possible to do what I need and if yes, how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried to "disable" the middle tier view with a &amp;lt;!--condition, however I might've misunderstood what use those have/bring as my result didn't change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 13:29:02 GMT</pubDate>
    <dc:creator>Ravera</dc:creator>
    <dc:date>2017-09-26T13:29:02Z</dc:date>
    <item>
      <title>OLAP cube MDX authorization</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/OLAP-cube-MDX-authorization/m-p/398793#M2407</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to apologise in advance for any weird grammer that may occur - this is not my native language.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if what I/we want/need is possible but here we go:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was tasked with remanufacturing some reports which so far have been sent out manually as Excel-Sheets. We intend to use a WRS-Report based on an OLAP cube instead in their place. However, the data inside is fairly sensitive which means I need to filter by User-ID in regards to who gets to see what report. This is going to happen via User-groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now my problem is following:&lt;/P&gt;&lt;P&gt;There is a 3-tier hierarchy regarding the divisions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tier1 could be "A" and "B".&lt;/P&gt;&lt;P&gt;Tier2 could be "AA", "BB" and "CC"&lt;/P&gt;&lt;P&gt;Tier3 could be "AAA", "BBB", "CCC", "DDD", etc all the way to "KKK".&lt;/P&gt;&lt;P&gt;However, the hierarchy doesnt look neat like in Ex.1 but more like Ex.2:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example1.png" style="width: 257px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15419iC6487CC771215A2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example1.png" alt="Example1.png" /&gt;&lt;/span&gt;(Ex.1) &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example2.png" style="width: 254px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15420i5DED81A84680B9ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example2.png" alt="Example2.png" /&gt;&lt;/span&gt;(Ex.2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I've tried (and failed) to ONLY give access to the (DDD)-report without giving access to the (A)-report and (A-empty) report as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My best-working try so far has been achieved with the following MDX expression in the SAS OLAP Cube Studio, however I'd like (and&amp;nbsp; need) to prevent the User to see anything in the "empty" division.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;[Abteilung].[Abteilung].[Alle Abteilung],&lt;BR /&gt;[Abteilung].[Abteilung].[Alle Abteilung].[A],&lt;BR /&gt;[Abteilung].[Abteilung].[Alle Abteilung].[A].[&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;BR /&gt;[Abteilung].[Abteilung].[Alle Abteilung].[A].[&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ].[DDD]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When leaving out the third line inside the {}, all I see is the A-report but with no way to as well look at the DDD-report.&lt;/P&gt;&lt;P&gt;There are also cases when the recipients of the reports may look at AA and CCC (but not A or AAA/BBB) or B and III (not BB or HHH).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So: Is it at all possible to do what I need and if yes, how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried to "disable" the middle tier view with a &amp;lt;!--condition, however I might've misunderstood what use those have/bring as my result didn't change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 13:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/OLAP-cube-MDX-authorization/m-p/398793#M2407</guid>
      <dc:creator>Ravera</dc:creator>
      <dc:date>2017-09-26T13:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: OLAP cube MDX authorization</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/OLAP-cube-MDX-authorization/m-p/399070#M2409</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I dont know if this helps you, it was a while ago since I worked with cubes and MDX....:)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample code on how we solved access to different levels of a dimension, I remeber that the &amp;lt;!--Condition--&amp;gt; was important to get it to work :). We defined groups in metadata tha correspond to the data in the cube&amp;nbsp;and depending on&amp;nbsp;which group a person belonged to that information was retrieved from the cube&amp;nbsp;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;generate(&lt;BR /&gt;Filter([Customer].[Customer Unit ID].[Customer_id].members,IN ([Customer].CurrentMember.name,"SUB::SAS.IdentityGroups"))&lt;BR /&gt;,&lt;BR /&gt;ascendants([Customer].[Customer Unit ID].currentmember)&lt;BR /&gt;)&lt;BR /&gt;&amp;lt;!--CONDITION--&amp;gt;&lt;BR /&gt;generate(&lt;BR /&gt;Filter({[Customer].[Customer Unit Name].[Customer_id].members},IN ([Customer].[Customer Unit Name].CurrentMember.name,"SUB::SAS.IdentityGroups"))&lt;BR /&gt;,&lt;BR /&gt;ascendants([Customer].[Customer Unit Name].currentmember)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;generate( &lt;BR /&gt;Filter([Customer].[Region ID].members,IN ([Customer].[Region ID].CurrentMember.name,"RECA")) &lt;BR /&gt;, &lt;BR /&gt;ascendants([Customer].[Region ID].currentmember) &lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;lt;!--CONDITION--&amp;gt;&lt;/P&gt;
&lt;P&gt;generate( &lt;BR /&gt;Filter({[Customer].[Region Name].members},IN ([Customer].[Region Name].CurrentMember.name,"N Europe &amp;amp; Cent Asia")) &lt;BR /&gt;, &lt;BR /&gt;ascendants([Customer].[Region Name].currentmember) &lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;generate( &lt;BR /&gt;Filter([Customer].[Customer Unit ID].members,IN ([Customer].[Customer Unit ID].CurrentMember.name,"100017")) &lt;BR /&gt;, &lt;BR /&gt;ascendants([Customer].[Customer Unit ID].currentmember) &lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;lt;!--CONDITION--&amp;gt;&lt;/P&gt;
&lt;P&gt;generate( &lt;BR /&gt;Filter({[Customer].[Customer Unit Name].members},IN ([Customer].[Customer Unit Name].CurrentMember.name,"Verizon")) &lt;BR /&gt;, &lt;BR /&gt;ascendants([Customer].[Customer Unit Name].currentmember) &lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 08:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/OLAP-cube-MDX-authorization/m-p/399070#M2409</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2017-09-27T08:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: OLAP cube MDX authorization</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/OLAP-cube-MDX-authorization/m-p/400209#M2410</link>
      <description>&lt;P&gt;This was indeed what we were looking for, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 10:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/OLAP-cube-MDX-authorization/m-p/400209#M2410</guid>
      <dc:creator>Ravera</dc:creator>
      <dc:date>2017-10-02T10:00:08Z</dc:date>
    </item>
  </channel>
</rss>

