Filter Dimension Year in cube

Post Reply
ChauBSD
Posts: 55
Joined: Wed Jun 27, 2012 3:22 am
OLAP Product: TM1
Version: 10.2
Excel Version: 2010
Contact:

Filter Dimension Year in cube

Post by ChauBSD »

Hi everyone,

I have two cube :

Cube A: i input data start year = 2013 (type simple)
Cube B: I want filter Dimension Year and start year 2013. I am using subset dynamix -> Expression windown -> write FILTER but i can't .

({FILTER( {TM1SubsetAll( [SL_Times] )}, [SL_Times].

Code: Select all

 = DB('DienGiaiGiaDinh',!DuAn,'NamBatDauThucHien','Value'))}) 

[attachment=0]Hinh.jpg[/attachment]

How do it ????
Attachments
Hinh.jpg
Hinh.jpg (73.68 KiB) Viewed 2295 times
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Filter Dimension Year in cube

Post by lotsaram »

You are mixing up MDX language and TM1 rules language.
Search for "MDX Primer" and this will help you out.
EvgenyT
Community Contributor
Posts: 324
Joined: Mon Jul 02, 2012 9:39 pm
OLAP Product: TM1
Version: PAL 2.0.8
Excel Version: 2016
Location: Sydney, Australia

Re: Filter Dimension Year in cube

Post by EvgenyT »

ChausBSD,

As lotsaram pointed out you are mixing two different languages. DB(..) is used in TM1 rules.

Try something like that .... [SL_Times].

Code: Select all

 = [CubeName].(StrToMember("[Dim1].[Element],[Dim1].[Element2],etc "),[Measure].[Value/String] ))}

Referencing cube values in the mdx is bit of a pain in the butt, so you may have to play around with the syntax/ read "mdx primer" to get it working the way you want it.

Do you agree lotsaram?

ET
Post Reply