Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Measure condition check not evaluating

Hello,

 

I have products and revenue info and I'm calculating few YTD measures. And also Revenue B I'm totalling everything as of selected date.

 

I created a another measure on top of these to check if for a given product IF(([CYTD Revenue] =0 and [Current Revenue B] = and [CYTD Revenue C] = 0 and [PY Revenue B] = 0), 0 ,1). But for some reason I get productid 26 even though the above condition evaluates to zero.

Tried using sumx, values(productid) but didnt work. Spent days to figure this out. Any help is appreciated.

 

Here is the report link -https://www.dropbox.com/s/cnyxfdoasrmgvc1/Zero%20condition%20check.pbix?dl=0

 

3 Replies

  • Anonymous Current Revenue B is not a zero value, it has decimal value, you need to round off to compare values, here is the image