Forum Discussion

Chanleakna123's avatar
Chanleakna123
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

an argument of function power has the wrong data type

hi all , the calculate are repeatedly good with Others , but when it comes to this one , it shown like this , 

it happens only with this formula , while CAGR2021Vs. 2019 and the rest are working normal , and i used the same things. 

and it happened only with NSR when i change filter to Volume ,it looks okay , how to settle this ?

 

  • v-deddai1-msft's avatar
    v-deddai1-msft
    6 years ago

    Hi Chanleakna123 ,

     

    Use the formula below:

     

     

    Check = IF(Val = BLank(),BLANK(),IF( Val<=0,"novalue",(Val^(1/2))-1))

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    Best Regards,

    Dedmon Dai

7 Replies

  • Chanleakna123 , is it possible that val^(1/2) is not possible for some value. Check the possible value of val. Also, check by removing this that is this causing a problem

    I think blank many causing it make it 0 in place of blank in divide

    • Chanleakna123's avatar
      Chanleakna123
      Icon for Post Prodigy rankPost Prodigy

      amitchandak  , can you recommend me , which formula that it should be right over this ? 
      since , it this is CAGR formula, therefore the formula looks like this 

      • v-deddai1-msft's avatar
        v-deddai1-msft
        Icon for Community Support rankCommunity Support

        Hi Chanleakna123 ,

         

        This is a mathematical logic problem. Negative numbers cannot calculate with ^1/2. If you really need the value, just add ABS before val like: ABS(val).

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

         

        Best Regards,

        Dedmon Dai