Forum Discussion

Rsanjuan's avatar
Rsanjuan
Advocate III
9 years ago
Solved

Division calculation with a condition

I am looking to creat a column by calculating two columns only if one column has a number.  For example below:

 

 

I only want to calculate Market Share if SA Market = 1 or anyother number.  If it is 0, I would like it to return a - or leave it blank.  I want to take the average of that last column, only including the ones that where there is an actual market share.  How can I go about doing this?  Thanks!

 

 

  • General syntax for your last column:

     

    Market Share = IF([Difference] = 0,"-",SOME CALCULATION)

    You would replace SOME CALCULATION with your desired calculation.

1 Reply

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    General syntax for your last column:

     

    Market Share = IF([Difference] = 0,"-",SOME CALCULATION)

    You would replace SOME CALCULATION with your desired calculation.