![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How to filter Time Dimension so certain users only can see data before today (Now-1 day)? I have Poduct Cube and OrderDate as Time Dimension. My OLAP Cube data is consumed by internal part and customers. We want to restrict customers' access right so they cannot see data which order date is today, they only can see the data that exist before today. How can it done by using dimension security ? An example would be greatly appreciated ![]() |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
I try to implement your idea, but I prefer to set the denied members - because it's more simple - with a formula : StrToMember("[ReceivedDate].[" + "12/14/2004" +"]") It's work, but when I change it into: Members("[ReceivedDate].[" + convert(char, Now(), 101 + "]") It's doesn't work.... Pls help me how to convert Today into "mm/dd/yyyy" format in MDX? Super Thx |
#7
| |||
| |||
|
|
use the vba function to format your date to the target format StrToMember("[ReceivedDate].[" + VBA!Format(VBA!Now(), "mm/dd/yyyy")+ "]") the convert functiion is an SQL statement, not an MDX function also, you can use a property in your ReceivedDate dimension. a property like "Current day" (which contain 0 or 1) and a formula like this: filter([ReceivedDate].[Dates], [ReceivedDate].currentmember.property("Current day") ="1").item(0) "Resant" <resant_v (AT) yahoo (DOT) com> a écrit dans le message de news: 1103080079.161255.111930 (AT) f14g20...oglegroups.com... I try to implement your idea, but I prefer to set the denied members - because it's more simple - with a formula : StrToMember("[ReceivedDate].[" + "12/14/2004" +"]") It's work, but when I change it into: Members("[ReceivedDate].[" + convert(char, Now(), 101 + "]") It's doesn't work.... Pls help me how to convert Today into "mm/dd/yyyy" format in MDX? Super Thx |
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |