Forum Discussion

acanepa's avatar
acanepa
Resolver I
9 years ago
Solved

Multi Value Variable: Filtering & Funnel

Hello Community,   I'm trying to make a funnel with different salesforce stages. I can generate a version in a calculated table, but I want to be able to filter the funnel as well, I have a couple ...
  • SqlJason's avatar
    9 years ago

    It would be better if you gave some examples of how your data looks and what format you need it to be. Based on what you gave, I did the following

    1) Made a table with the following data and bnamed it Fact

    Lead1 [email protected]YYY
    Lead 2 [email protected]YY 
    Lead 3Y  
    Lead 4Y  

     

    2) Made a disconnected table for the 3 stages we have

    Added to Platform
    Added to SalesForce
    Qualified

     

    3) Made a measure

    Cnt =
    IF (
        HASONEVALUE ( Stage[Stage] ),
        SWITCH (
            VALUES ( Stage[Stage] ),
            "Added to Platform"CALCULATE ( DISTINCTCOUNT ( 'Fact'[Lead] ), 'Fact'[Added To Platform] = "Y" ),
            "Added to SalesForce"CALCULATE ( DISTINCTCOUNT ( 'Fact'[Lead] ), 'Fact'[Added to SalesForce] = "Y" ),
            "Qualified"CALCULATE ( DISTINCTCOUNT ( 'Fact'[Lead] ), 'Fact'[Qualified] = "Y" )
        ),
        DISTINCTCOUNT ( 'Fact'[Lead] )
    )

     

    It seems to work as you want