Creating Output Field for $$ amount needed to upgrade membership

We are hoping to begin reaching out to donors whose giving is between membership levels to see if they want to increase their gift to upgrade to the next level. We'd like the emails to say something like, "You're just $5 away from XXX level Membership!"

Is there a way to create this field in an output set that could be imported into WordFly? Something like "$50-[last contrib amount]"?

TIA!

Parents
  • Hi Allegra

    I have quickly created something for you that might be a good starting point for you. If anything's hard to read in this post, email me directly sashby@tessituranetwork.com and I'll send it to you as a PDF.

    Below outlines the possible limitations, and the setup required - new Output Set Elements and adding a custom View to your database.
    Please do all of this in your TEST environment first to make sure it works as expected.

    OVERVIEW

    Outputs the current Membership Level description, the new Membership Level if the Constituent upgrades and the dollar amount required to achieve the upgrade.
    Only returns Constituents with current Memberships that have a value – not free.
    Constituents in the top level of each Membership are excluded as there is no level to upgrade to.

    NOTE: May not work as intended if Membership Levels within a Membership org has overlapping start and end amounts

    ONLY Filter by a single Membership Organization to avoid multiple rows per constituent. If multiple rows are returned the output will not work with Wordfly or Prospect2 emailing.

    More details are included in the comments area within the View (code)

    VIEW

    GO
    
    SET ANSI_NULLS ON
    GO
    
    SET QUOTED_IDENTIFIER ON
    GO
    
    
    CREATE View [dbo].[LVS_ELEMENTS_MEMBERHIP_UPGRADE]
    
    /*
    CREATED BY SASHBY JUNE 2022
    USED BY    Custom Output Set Elements
    
    For Current Members to identify the $ amount required for the Constituent to reach the next Membership Level
    Excludes the top membership level as there is no level to upgrade to.
    Excludes free memberships - no $ amount
    
    Uses Membership Level RANK to determine the next level - Rank 1 is the highest level and Rank 10 is the lowest level. Example - next level up for Rank 10 would be Rank 9
    The Membership Levels start and end amounts must not overlap, does not take into consideration Single vs Family Memberships 
    For Memberships with a basic linear value progression
    */
    
    AS 
    WITH MEMB_CTE (customer_no, memb_org_no, current_amt, current_level, current_level_desc, current_rank, next_rank, current_start_amt)  
    AS  
    
    (  
    -- Get current membership details and identify the next level
    SELECT a.customer_no, a.memb_org_no, (a.AVC_amt + a.memb_amt) AS 'current_amt', a.memb_level AS 'current_level', b.description as 'current_level_desc', 
    b.rank AS 'current_rank', (b.rank - 1) AS 'next_rank', b.start_amt AS 'current_start_amt' 
    FROM VS_ELEMENTS_MEMBERSHIP a 
    JOIN VS_MEMB_LEVEL b ON a.memb_org_no = b.memb_org_no AND a.memb_level = b.memb_level
    WHERE  a.current_status_no = 2 AND b.rank NOT IN (1) and (a.AVC_amt + a.memb_amt) > 0  
    )  
    
    -- calculate new start amount and the upgrade amount
    SELECT a.*, b.start_amt AS 'new_start_amt', (b.start_amt - a.current_amt) AS 'upgrade_amt', b.description AS 'new_level_desc'
    FROM MEMB_CTE a
    JOIN VS_MEMB_LEVEL b ON a.next_rank = b.rank
    WHERE a.memb_org_no = b.memb_org_no
    
    GO
    
    GRANT REFERENCES, SELECT on [LVS_ELEMENTS_MEMBERHIP_UPGRADE] to impusers, tessitura_app
    GO 
    
    .

    TR_QUERY_ELEMENT_GROUP

    Column Name

    Value

    Description

    Membership Upgrade

    Data_From

    LVS_ELEMENTS_MEMBERHIP_UPGRADE

    Category

    Membership

    TR_QUERY_ELEMENT

    New Level

    Column Name

    Value

    Description

    Memb - new level

    Group Id

    Membership Upgrade

    Data_Select

    !.new_level_desc

    Single_row

    [Checked]

     

    Current Level

    Column Name

    Value

    Description

    Memb - current level

    Group Id

    Membership Upgrade

    Data_Select

    !.current_level_desc

    Single_row

    [Checked]

     

    Current Amount

    Column Name

    Value

    Description

    Memb - current amt

    Group Id

    Membership Upgrade

    Data_Select

    !.current_amt

    Single_row

    [Checked]

     

    Upgrade Amount

    Column Name

    Value

    Description

    Memb - upgrade amt

    Group Id

    Membership Upgrade

    Data_Select

    !.upgrade_amt

    Single_row

    [Checked]

    TR_QUERY_ELEMENT_PARAMETER

    Membership Organization

    Column Name

    Value

    Description

    Membership Org (single)

    Group Id

    Membership Upgrade

    Filter Element

    memb_org_no

    Data Type

    Number

    Ref_Tbl

    VS_MEMB_ORG

    Ref_Idcol

    memb_org_no

    Ref_Desccol

    Description

    Ref_sort

    Description

    Sample Output

Reply
  • Hi Allegra

    I have quickly created something for you that might be a good starting point for you. If anything's hard to read in this post, email me directly sashby@tessituranetwork.com and I'll send it to you as a PDF.

    Below outlines the possible limitations, and the setup required - new Output Set Elements and adding a custom View to your database.
    Please do all of this in your TEST environment first to make sure it works as expected.

    OVERVIEW

    Outputs the current Membership Level description, the new Membership Level if the Constituent upgrades and the dollar amount required to achieve the upgrade.
    Only returns Constituents with current Memberships that have a value – not free.
    Constituents in the top level of each Membership are excluded as there is no level to upgrade to.

    NOTE: May not work as intended if Membership Levels within a Membership org has overlapping start and end amounts

    ONLY Filter by a single Membership Organization to avoid multiple rows per constituent. If multiple rows are returned the output will not work with Wordfly or Prospect2 emailing.

    More details are included in the comments area within the View (code)

    VIEW

    GO
    
    SET ANSI_NULLS ON
    GO
    
    SET QUOTED_IDENTIFIER ON
    GO
    
    
    CREATE View [dbo].[LVS_ELEMENTS_MEMBERHIP_UPGRADE]
    
    /*
    CREATED BY SASHBY JUNE 2022
    USED BY    Custom Output Set Elements
    
    For Current Members to identify the $ amount required for the Constituent to reach the next Membership Level
    Excludes the top membership level as there is no level to upgrade to.
    Excludes free memberships - no $ amount
    
    Uses Membership Level RANK to determine the next level - Rank 1 is the highest level and Rank 10 is the lowest level. Example - next level up for Rank 10 would be Rank 9
    The Membership Levels start and end amounts must not overlap, does not take into consideration Single vs Family Memberships 
    For Memberships with a basic linear value progression
    */
    
    AS 
    WITH MEMB_CTE (customer_no, memb_org_no, current_amt, current_level, current_level_desc, current_rank, next_rank, current_start_amt)  
    AS  
    
    (  
    -- Get current membership details and identify the next level
    SELECT a.customer_no, a.memb_org_no, (a.AVC_amt + a.memb_amt) AS 'current_amt', a.memb_level AS 'current_level', b.description as 'current_level_desc', 
    b.rank AS 'current_rank', (b.rank - 1) AS 'next_rank', b.start_amt AS 'current_start_amt' 
    FROM VS_ELEMENTS_MEMBERSHIP a 
    JOIN VS_MEMB_LEVEL b ON a.memb_org_no = b.memb_org_no AND a.memb_level = b.memb_level
    WHERE  a.current_status_no = 2 AND b.rank NOT IN (1) and (a.AVC_amt + a.memb_amt) > 0  
    )  
    
    -- calculate new start amount and the upgrade amount
    SELECT a.*, b.start_amt AS 'new_start_amt', (b.start_amt - a.current_amt) AS 'upgrade_amt', b.description AS 'new_level_desc'
    FROM MEMB_CTE a
    JOIN VS_MEMB_LEVEL b ON a.next_rank = b.rank
    WHERE a.memb_org_no = b.memb_org_no
    
    GO
    
    GRANT REFERENCES, SELECT on [LVS_ELEMENTS_MEMBERHIP_UPGRADE] to impusers, tessitura_app
    GO 
    
    .

    TR_QUERY_ELEMENT_GROUP

    Column Name

    Value

    Description

    Membership Upgrade

    Data_From

    LVS_ELEMENTS_MEMBERHIP_UPGRADE

    Category

    Membership

    TR_QUERY_ELEMENT

    New Level

    Column Name

    Value

    Description

    Memb - new level

    Group Id

    Membership Upgrade

    Data_Select

    !.new_level_desc

    Single_row

    [Checked]

     

    Current Level

    Column Name

    Value

    Description

    Memb - current level

    Group Id

    Membership Upgrade

    Data_Select

    !.current_level_desc

    Single_row

    [Checked]

     

    Current Amount

    Column Name

    Value

    Description

    Memb - current amt

    Group Id

    Membership Upgrade

    Data_Select

    !.current_amt

    Single_row

    [Checked]

     

    Upgrade Amount

    Column Name

    Value

    Description

    Memb - upgrade amt

    Group Id

    Membership Upgrade

    Data_Select

    !.upgrade_amt

    Single_row

    [Checked]

    TR_QUERY_ELEMENT_PARAMETER

    Membership Organization

    Column Name

    Value

    Description

    Membership Org (single)

    Group Id

    Membership Upgrade

    Filter Element

    memb_org_no

    Data Type

    Number

    Ref_Tbl

    VS_MEMB_ORG

    Ref_Idcol

    memb_org_no

    Ref_Desccol

    Description

    Ref_sort

    Description

    Sample Output

Children