此上下文中不支持运算符或表达式“NULL”
2018-03-08 本文已影响31人
PowerQuery
最近遇到一个案例:
TimeIsNull.png百思不得其解,我甚至尝试过用双引号“”来代替null,当然还是会出错:
双引号也不行.png
最后Google得出的解决办法是:把公式中的null换成Blank()即可。原文链接见这里。
原因在于:
“In DAX, a null, blank value, empty cell, or a missing value are all represented by the same new value type, a BLANK. You can also generate blanks by using the BLANK function, or test for blanks by using the ISBLANK function.”
翻译:在DAX中,null值、blank值、空值或缺失值,都被BLANK这个新的值类型所代替。你也可以用BLANK()函数来产生Blanks值,或者用ISBLANK()函数来测试blanks值。
原文地址见这里。