Reporting services 无法在组表达式中使用全局变量

Reporting services 无法在组表达式中使用全局变量,reporting-services,Reporting Services,我想用Globals!条件组表达式的RenderFormat.Name。但是当我尝试预览时,错误是这样发生的 "The groupexpression for the tablix "..." refers to the global variable RenderFormat, which is not valid for this type of report item expression." 我还尝试使用just=Globals!组表达式中的RenderFormat.Name,但结果相

我想用Globals!条件组表达式的RenderFormat.Name。但是当我尝试预览时,错误是这样发生的

"The groupexpression for the tablix "..." refers to the global variable RenderFormat, which is not valid for this type of report item expression."
我还尝试使用just=Globals!组表达式中的RenderFormat.Name,但结果相同

我如何使用Globals!组表达式中的RenderFormat.Name

提前谢谢。

您不能使用Globals!组表达式中的RenderFormat.Name。
一种可能的解决方法是添加第二个tablix,而不分组以显示if lcaseleftGlobals!RenderFormat.Name,5=excel也可以是EXCELOPENXML,如果是excel导出,则隐藏原始的,反之亦然

如果使用=IIFGlobals,是否会出现相同的错误!RenderFormat.Name=X,1,0如果在导出到Excel时尝试取消合并分组单元格,则此操作似乎非常关键。回答就好了!