Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# SQL SERVER中的DAX IFERROR函数_C#_Sql Server_Dax - Fatal编程技术网

C# SQL SERVER中的DAX IFERROR函数

C# SQL SERVER中的DAX IFERROR函数,c#,sql-server,dax,C#,Sql Server,Dax,我不熟悉DAX公式。 要在SQL SERVER过程中使用任何DAX函数,需要执行哪些操作。 当我在SQL中简单地使用ISERROR函数时,就会出现以下错误: “IFERROR”不是可识别的内置函数名。 我需要添加一些库或任何东西吗? 请回复 declare @x int=10; declare @y int=0; declare @c int; print IFERROR((@x / @y),Null); 在DAX中不能以这种方式定义变量。DAX不是一种过程语言。DAX不包含IF。。但它不适用

我不熟悉DAX公式。 要在SQL SERVER过程中使用任何DAX函数,需要执行哪些操作。 当我在SQL中简单地使用ISERROR函数时,就会出现以下错误: “IFERROR”不是可识别的内置函数名。 我需要添加一些库或任何东西吗? 请回复

declare @x int=10;
declare @y int=0;
declare @c int;
print IFERROR((@x / @y),Null);

在DAX中不能以这种方式定义变量。DAX不是一种过程语言。DAX不包含IF。。但它不适用于变量。由于变量不是DAX中的表达式。

您需要声明Var关键字才能使用DAX语言中的变量,因为DAX不是编程语言

是SQL SERVER中可用于实现iError功能的任何替代函数。公式(@x/@y)由用户定义,可能会有所不同。