Forum Discussion

MikeK's avatar
MikeK
Regular Visitor
8 years ago
Solved

conversion rate over time

Hi,   I have to visualize the conversion rate of leads over time.   In my leads table i have mutliple dates per lead. One is the creation date, another one ist the won date, if the lead is won, o...
  • MikeK's avatar
    8 years ago

    Hi @all

     

    I solved at least point 1 in the meantime. For everyone who's interessted here is how I did it.

     

    I added the following DAX as a measure and used the masure as value in a matrix component.

     

    Lead-Deposit conversion over time = 
    VAR TotalLeadsInMonth = 
    CALCULATE(
        COUNTAX(
        FILTER(
            ALL(FactLead);
            MONTH(FactLead[DD_created]) = MAX(DimDate[Month]) && YEAR(FactLead[DD_created]) = MAX(DimDate[Year])
        );
        FactLead[LeadID]
    ))
    
    VAR TotalDeposits = 
    CALCULATE(
        COUNTAX(
        FILTER(
            ALLSELECTED(FactLead);
            MONTH(FactLead[DD_created]) = MAX(DimDate[Month]) 
            && YEAR(FactLead[DD_created]) = MAX(DimDate[Year])
            && FactLead[MonthsLeadDeposit] <= MAX(FactLead[MonthsLeadDeposit])
            && FactLead[MonthsLeadDeposit] <> BLANK()
        );
        FactLead[LeadID]
    ))
     
    RETURN DIVIDE(TotalDeposits; TotalLeadsInMonth)

    For now my customer is happy and I don't have to fill up the empty cells.

    Hope it stays that way!

     

     

    Best regards,

    Mike