Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Divide function giving different results

Hi All,   In first screenshot What i want is and in second sceenshot what i am getting is , How can i resilve it.  
  • v-lionel-msft's avatar
    v-lionel-msft
    6 years ago

    Anonymous,

     

    Is your table like this?

    I created a measure but didn't meet the error:

    Measure 2 = 
    VAR x = 
    COUNTX(
        FILTER(
            Sheet9,
            [Status] = 2
        ),
        [Status]
    )
    VAR y = 
    COUNTAX(
        Sheet9,
        Sheet9[Status POT]
    )
    RETURN
    DIVIDE(
        y,
        x
    )

    The error is very strange.

     

    Why did you add filters on this visual?


    Maybe you can remove the filters , then, try it again.