简体   繁体   English

MS-BI-SSRS,将级联参数传递到追溯报表

[英]MS-BI-SSRS,Passing Cascaded parameters to Drill Through report

I am trying to develop a report from cube,and it has one drill through report.when i click on sales amount field on main report,then it open the drill through report with details.Here i passed the (category,subcat,product)parameters(Cascaded) to drill through report in action part of main report.In my main report i have two columns . 我正在尝试从多维数据集开发一个报表,并且该报表具有一个追溯报表。当我单击主报表上的销售额字段时,它会打开包含详细信息的追溯报表。在这里,我通过了(类别,子类别,产品)参数(级联)以钻取主报告中操作部分的报告。在主报告中,我有两列。 columns are Level and Salesamount . 列是“ 级别”和“ Salesamount” Values are like 价值观就像
[-]category 100 [-]subcat 50 product 30 when i click on 100, parameters are passed & it open the detail report correctly, but when i click on 50,the values for subcat parameter is not getting values in detail report and same as the product also. [-]类别 100 [-] subcat 50 产品 30,当我单击100时,参数已通过并正确打开了详细报告,但是当我单击50时,subcat参数的值未获得详细报告中的值,并且相同作为产品也。 Here i used the expressions in parameter values pCategory ----iif(inscope(category),!fields.category.value,split(join(Parameters!category.value,","),",")) 在这里,我在参数值pCategory ---- iif(inscope(category),! fields.category.value,split(join(Parameters!category.value,“,”),“,”))中使用表达式

psubcat ----iif(inscope(subcat),!fields.subcat.value,split(join(Parameters!subcat.value,","),",")) psubcat ---- iif(inscope(subcat),! fields.subcat.value,split(join(Parameters!subcat.value,“,”),“,”)))

pproduct ----iif(inscope(product),!fields.product.value,split(join(Parameters!product.value,","),",")) pproduct ---- iif(inscope(product),! fields.product.value,split(join(Parameters!product.value,“,”),“,”))

can any one plz reply me.Thanks in Advance 任何人都可以回复我吗?谢谢

After Struggled 2 days , finally i made this. 经过2天的奋斗,我终于做到了。 I just changed the expressions for the parameters, it worked fine. 我只是更改了参数的表达式,效果很好。

pCategory= iif(inscope(category),!fields.category.value,split(join(Parameters!category.value,","),",")) pCategory = iif(inscope(category),! fields.category.value,split(join(Parameters!category.value,“,”),“,”))

psubcat= iif(inscope(subcat),!fields.subcat.value, lookupset(Fields!Category_ID.Value,Fields!Subcat_ID.Value,Fields!Subcat.Value,"dsMain") psubcat = iif(inscope(subcat),! fields.subcat.value,lookupset(Fields!Category_ID.Value,Fields!Subcat_ID.Value,Fields!Subcat.Value,“ dsMain”)

pproduct= iif(inscope(product),!fields.product.value, lookupset(Fields!Subcat_ID.Value,Fields!Product_ID.Value,Fields!Product.Value,"dsMain") pproduct = iif(inscope(product),! fields.product.value,lookupset(Fields!Subcat_ID.Value,Fields!Product_ID.Value,Fields!Product.Value,“ dsMain”)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM