Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217177

Can't figure out the proper syntax for a new measure

$
0
0

Our company rents musical instruments to school children.  There are two types of rentals - beginning rental instruments, and advancing rental instruments.  There are two types of beginning rentals - we call them Starter Packs and Intro Offers.  The data in the sample of our table below should help us break these down.

 

Table name - 'Rental Accounts - scrental'

 

Contract Date1st Pmt Due DateDown Payment
8/12/201310/12/201317.12
9/1/201610/1/20160
7/2/20149/2/201417.16
8/29/20159/29/20150
12/2/20131/2/2014178.04

 

If there is no down payment, it is a Beginner Rental - Starter Pack.  Above, there are 2.

If there is a down payment with a 2 month interval between the Contract Date and 1st Pmt Due Date, it is a Beginner Rental - Intro Offer.  Above, there are 2.

If there is a down payment and a 1 month interval between the Contract Date and 1st Pmt Due Date, it is an Advancing Rental.  Above, there is 1.

 

What formula(s) should I use to make this happen?  I want to be able to ask these questions:

  1. How many rentals are Beginner Rentals and how many are Advancing rentals?
  2. Of the Beginning Rentals, how many are Starter Packs and how many are Intro Offers?

Thanks for your help!


Viewing all articles
Browse latest Browse all 217177

Trending Articles