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.
以下措施
var growth = IF([value]>0,"up by ", IF([value]=0,"flat at ", IF([value]<0,"down by ")))
通过上述测量,值-0.1 或 -0.001等显示为向下,而应显示为平在。
请让我知道如何在 PowerBi 上解决此问题
因为该值是百分比形式,所以 round 只会使其为 0。对我有用的答案是
IF( [value]*100>=1,"up by ", IF(([value]*100>-1)&&([value]*100<1),"flat at ", IF([value]*100<=-1,"down by ")))