Forum Discussion

SachinNamdeo-20's avatar
3 years ago
Solved

Calculate Effective Dealer

I want to calculate only   count of  Effective dealer, Effective dealer condition is :- Which dealer has  previous 3 month avarage sales  is greater than 40 is satisfied the condition of effective d...
  • pi_eye's avatar
    pi_eye
    3 years ago

    So you need to count the effective Dealers for a given selection? 

    Try something like

     

    Effective Count = SUMX( VALUES( invoice[DEALER]), IF (  [3 MONTH AVERAGE] >= 40, 1))
     Where :
     [3 MONTH AVERAGE] = CALCULATE(SUM(invoice[INVOICE QUANTITY]),DATESINPERIOD(invoice[DATE],LASTDATE(invoice[DATE]),-3,MONTH))/3

     

    This will aggregate up to the total effective dealers:

    In a table with dealer:

     

    In object on it's own:

     

     

    If this is not what you need, can you illustrate maybe using excel just to show what the end result what look like?

     

    Thank you

     

    Pi