Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Measure and filtering problem

Hi,   I have created a measure to calculate the discount between two values, but when I put it in a table, it shows all the record (it seems to ignore the filters), but it shows blanks in the colum...
  • tarunsingla's avatar
    tarunsingla
    7 years ago

    Hi, A minor update to Anonymous's solution.

     

    Discount = IF(ISBLANK(SUM([Gross Price])), BLANK(), 1 - DIVIDE(SUM([Net Price]),SUM([Gross Price])))

     

    See if that helps.