企业绩效管理网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1074|回复: 3

drill through question

[复制链接]

67

主题

399

帖子

555

积分

高级会员

Rank: 4

积分
555
QQ
发表于 2014-6-2 15:02:24 | 显示全部楼层 |阅读模式
Hi Guys,

Testing connectivitly to a drill through source from an access database. I am trying to drill through to the following. However the TM1 view I have has alias's turned on for the "coo_auext" dimension to show
desriptions. I thought it may be possible to try:

[Profit ctr1] = '?SUBST(?coo_ausext?, 1, 10)?'

to replace line 5 in the following drill TI query:

SELECT *
from [CJ74 Transactions]
WHERE
[RefDocNo1] = '?capex_reference_doc_num?'
AND [Profit ctr1] = '?coo_ausext?'

The only work around I have is to populate an access field with both the "coo_auext" cost centre account with the name tacked on the end ie "0000008210" to "0000008210 - my descripton"
so the drill will work. Can someone kindly provide the proper syntax to make this work, my knowledge is a little lacking in this area.

Cheers

Shock
回复

使用道具 举报

64

主题

354

帖子

512

积分

高级会员

Rank: 4

积分
512
QQ
发表于 2014-6-2 16:34:12 | 显示全部楼层
Are you adjusting the drill process in the Prolog command?  The drill will evaluate this section first then perform the query.

in the datasource query window
SELECT *
from [CJ74 Transactions]
WHERE
[RefDocNo1] = ?capex_reference_doc_num?
AND [Profit ctr1] = ?coo_ausext?

In the prolog tab (place the following)

coo_ausext = SUBST(coo_ausext, 1, 10);
or
coo_ausext = DimensionElementPrincipalName( DimName, ElName );

I thing I did notice is that the drill thru tends give errors (parameter syntax error or parameter not found) when saving but the drill thru works fine when you're using it.

Steve
回复 支持 反对

使用道具 举报

66

主题

378

帖子

540

积分

高级会员

Rank: 4

积分
540
QQ
发表于 2014-6-2 18:04:14 | 显示全部楼层
While Steve's solution is fine, I would also like to mention that (as you're querying MS Access here) you should be able to use the Left function in your query:

SELECT *
from [CJ74 Transactions]
WHERE
[RefDocNo1] = ?capex_reference_doc_num?
AND [Profit ctr1] = Left('?coo_ausext?', 10)

Michel
回复 支持 反对

使用道具 举报

69

主题

368

帖子

521

积分

高级会员

Rank: 4

积分
521
QQ
发表于 2014-6-2 18:29:29 | 显示全部楼层
Fantastic lads! Love this forum!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|企业绩效管理网 ( 京ICP备14007298号   

GMT+8, 2023-10-3 17:30 , Processed in 0.077542 second(s), 12 queries , Memcache On.

Powered by Discuz! X3.1 Licensed

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表