Forum Discussion

SachinNamdeo-20's avatar
3 years ago
Solved

Active dealer count

Dear community, " I want to calculate active dealers count but don't know how satisfied with this condition active dealers are- Active dealer:- Who was appear in more than 3 months in a year is t...
  • SachinNamdeo-20's avatar
    SachinNamdeo-20
    3 years ago

    Thank you sir for your  all valuable suggestions this is done by this measure

    Active Customers = 
    VAR SummaryTable =
        ADDCOLUMNS (
            SUMMARIZE ( CUBE_INVOICE, CUBE_INVOICE[SOLD TO PARTNER.PARTNER CODE]),
            "@num months", COUNTROWS ( CALCULATETABLE ( SUMMARIZE ( CUBE_INVOICE, Calendar_new[YM] ) ) )
        )
    RETURN COUNTROWS ( FILTER ( SummaryTable, [@num months] >= 3 ) )

    This measure working when we selecct more than 3 month on calender slicer but with this measure we done it for ficial year 

    Active dealer in ficial year = CALCULATE([Active Customers],DATESYTD(Calendar_new[Date],"03/31"))