简体   繁体   English

SSRS 数据集 - 在预期条件的上下文中指定的非布尔类型的表达式,靠近“,”

[英]SSRS Dataset - An expression of non-boolean type specified in a context where a condition is expected, near ','

I am trying to make a report and I have the problem in the @myTab parameter that I need multiple selections to be able to select several or all the elements and be able to know which country it belongs to, the problem occurs when I select more than one element, this is the query I'm overlooking我正在尝试制作报告,我在@myTab 参数中遇到问题,我需要多项选择才能选择多个或所有元素并能够知道它属于哪个国家,当我选择更多时会出现问题不止一个元素,这是我忽略的查询

select [CompanyName],[ContactName],[Country] from [Customers] 
    
       where [Customers].ContactName in (@myTab) and [Customers].Country=@pais or 
    
       [Customers].Country=@pais and @myTab is null

This is because of @myTab is null condition(we can't check multi-valued parameters directly with "is null"), Try removing this and validate again.这是因为@myTab 为空条件(我们不能直接用“is null”检查多值参数),请尝试删除它并再次验证。 One more thing is that, be sure about "and" and "Or" conditions - Use proper brackets to avoid data issues另一件事是,请确定“和”和“或”条件 - 使用正确的括号来避免数据问题

暂无
暂无

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

相关问题 SSRS 2008 R2:在需要条件的上下文中在“,”附近指定非布尔类型的表达式 - SSRS 2008 R2: An expression of non-boolean type specified in a context where a condition is expected, near ',' where子句引起错误的情况:在需要条件的上下文中,在')'附近指定非布尔类型的表达式 - case in where clause causes the error : An expression of non-boolean type specified in a context where a condition is expected, near ')' 在预期条件的上下文中指定的非布尔类型的表达式,靠近 WHERE - An expression of non-boolean type specified in a context where a condition is expected, near WHERE 在需要条件的上下文中在“和”附近指定的非布尔类型的表达式。 C# - An expression of non-boolean type specified in a context where a condition is expected, near 'and'. C# 在需要条件的上下文中在“,”附近指定的非布尔类型的表达式 - An expression of non-boolean type specified in a context where a condition is expected, near ',' 在“ AdmissionID”附近需要预期条件的上下文中指定的非布尔类型的表达式 - An expression of non-boolean type specified in a context where a condition is expected, near 'AdmissionID' 在预期条件的上下文中指定的非布尔类型的表达式,靠近“GROUP” - An expression of non-boolean type specified in a context where a condition is expected, near 'GROUP' 在期望条件的上下文中指定的非布尔类型的表达式,在')'附近 - An expression of non-boolean type specified in a context where a condition is expected, near ')' 在期望条件的上下文中指定的非布尔类型的表达式,在IDT中接近“)”错误 - An expression of non-boolean type specified in a context where a condition is expected, near ')' error in IDT 在期望“ END”附近存在条件的上下文中指定的非布尔类型的表达式 - An expression of non-boolean type specified in a context where a condition is expected near 'END'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM