企业绩效管理网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1510|回复: 3

Autofilter for TM1Web?

[复制链接]

85

主题

427

帖子

621

积分

高级会员

Rank: 4

积分
621
QQ
发表于 2014-6-27 20:51:41 | 显示全部楼层 |阅读模式
I searched for that topic, but didn't find anything usefull. Except that there is a function named TM1RPTROW.
The documentation was not explaning how to use the filter in detail (not enough for me).

I have a large web report and want to set a filter (like usual autofilter in excel) on every column with element names. When the report is shown, the drop down listbox should show every element name from the rows below. It would be great if there are no duplicates!  

If I select e.g. in one column element "china", the report should be updated, filtering everything different than china. Now the other listboxes should base again on the remaining rows, e.g. show in the article column all articels which are sold in china. And if I select "teddy bear" all rows not showing teddy bears should be disappear.

How could i handle this with mdx and TM1RPTROW? Where should I add this function???

ADMIN : Please try and post in the correct forum, ty

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

70

主题

390

帖子

554

积分

高级会员

Rank: 4

积分
554
QQ
发表于 2014-6-27 22:17:18 | 显示全部楼层
In the TM1RPTROW function you can pass a MDX query which can apply filters on the query and your results will be displayed in the Active Form
回复 支持 反对

使用道具 举报

66

主题

382

帖子

540

积分

高级会员

Rank: 4

积分
540
发表于 2014-6-27 22:37:23 | 显示全部楼层
I tried a lot, but nothing worked. Do you have an example (hardcoded?) for my example?
MyCube(Dim1 ... Dim5)

Filter everything which has not $A$1 in Dim3. (means show everything with $A$1 in Dim3)

I would try this:

{Filter( TM1FilterByLevel(TM1SubSetAll([Dim3]), 0) , [MyCube].([Dim3].[" & $A$1 &"])  <> 0)}

Where is my fault?
回复 支持 反对

使用道具 举报

83

主题

421

帖子

617

积分

高级会员

Rank: 4

积分
617
QQ
发表于 2014-6-27 23:46:39 | 显示全部楼层
The MDX statement which you have written does not seem to be right. Suppose if you want to filter on Dim3 then you will have to put Dim3 within TM1SubSetAll(). This will tell the MDX on which dimension you are working on. Later you apply Filter() in the MDX - when you apply the filter you skip Dim3 and use all other dimension in your syntax.

You syntax should look something like (following query will return all the elements in Dim3 which are non-zero in MyCube):

Code: Filter(
    TM1SubSetAll(&#91;Dim3&#93;)
    ,
    &#91;MyCube&#93;.(
         &#91;Dim1&#93;.&#91;Element&#93;
        , &#91;Dim2&#93;.&#91;Element&#93;
        , &#91;Dim4&#93;.&#91;Element&#93;
        , &#91;Dim5&#93;.&#91;Element&#93;
        )
        <> 0
)

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2023-3-29 14:08 , Processed in 0.111883 second(s), 40 queries .

Powered by Discuz! X3.1 Licensed

© 2001-2013 Comsenz Inc.

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