Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一份 SSRS 报告,NaN当我在这里进行划分时,我不断获得价值。如何NaN在我的声明中用 0 替换?
NaN
=Fields!Whse_QTY.Value/Fields!Total_QTY_Sales.Value
IIf由于语句中没有短路,您需要小心。
IIf
就像是:
=IIf(Fields!Total_QTY_Sales.Value = 0, 0, Fields!Whse_QTY.Value) / IIf(Fields!Total_QTY_Sales.Value = 0, 1, Fields!Total_QTY_Sales.Value)
应该做的工作。