📅  最后修改于: 2020-12-01 04:41:21             🧑  作者: Mango
如前所述,DAX是一种由运算符,值,函数和公式组成的公式语言。在本章中,您将学习DAX语法。
DAX语法可归类为-
在继续学习DAX语法之前,您必须了解Excel公式和DAX公式之间的区别。
DAX公式类似于Excel公式,您可以在编辑栏中键入它们。但是,两者之间存在一些重大差异。
Excel Formula | DAX Formula |
---|---|
Excel formulas are typed in the formula bar in the Excel window. |
DAX formulas are typed in the formula bar in the Power Pivot window. |
In Excel formulas, you can reference individual cells or arrays for data. |
In DAX formulas, you can reference only complete tables or columns of data, i.e. references can be only to tables and fields in the tables. However, if at all you have to perform a calculation only on a part of the column data, you can do so with the DAX functions that filter and provide the required unique data values for calculation. |
Excel formulas support certain data types. |
DAX provides more data types than Excel does. Hence, DAX formulas can use the additional data types also. |
Excel does not support any implicit data conversions. |
DAX performs implicit data type conversions during calculations. |