Forum Discussion
pmadam
5 years agoHelper II
Help division error
Hi All, I am trying to divide two text columns for a particluar dimension. So i get error when the numerator or denominator has blank value. I went forward and added if clause as below but i stil...
- 5 years ago
pmadam Maybe:
XY = IF( ISBLANK([DSAM Amount]) && Not(ISBLANK(VALUE([Customer Target]))), 0 , [Customer Target] / [DSAM Amount] )
pmadam
5 years agoHelper II
Hi Greg_Deckler ,
I get error. These measures are in text because when i added comma seperator, the measures were converted to type int to text.
Pragati11
5 years agoSuper User
Hi pmadam ,
Are bot of your columns numeric which you are trying to divide.
DIVIDE is function that works on non-text values. If you think logically, how can you divide a text value by a numeric value.
Try modifying data type of your text column used in DIVIDE function to Numeric.
Thanks,
Pragati