0

以下措施

var growth = 
 IF([value]>0,"up by ",
  IF([value]=0,"flat at ",
   IF([value]<0,"down by ")))

通过上述测量,值-0.1 或 -0.001等显示为向下,而应显示为平在

请让我知道如何在 PowerBi 上解决此问题

4

1 回答 1

0

因为该值是百分比形式,所以 round 只会使其为 0。对我有用的答案是

IF(
    [value]*100>=1,"up by ",
        IF(([value]*100>-1)&&([value]*100<1),"flat at ",
            IF([value]*100<=-1,"down by ")))
于 2020-08-25T13:12:14.003 回答