Forum Discussion

community_pinki's avatar
5 years ago
Solved

divide by Zero ERROR when using DIVIDE()

Hi All,   I am working on Student Score Card related dataset and trying to calculate Percentage achieved by Student in each subject. You can see in attachment the MaxMarks is 0 for studid 101 and ...
  • Greg_Deckler's avatar
    5 years ago

    community_pinki Because you aren't using the third parameter for divide and the default for that is BLANK when you divide by zero. You want:

    DIVIDE(SUM(...), SUM(...),0) * 100