Forum Discussion

RyanLocke1's avatar
RyanLocke1
Qrew Cadet
4 years ago

Bi Monthly Billing Calculated Field based off Date chosen

Good Evening, I am new to quickbase and am trying to figure out a way to set up a filter where a user selects a date and then a report will filter for their current billing period. We bill bi-mont...
  • MarkShnier__You's avatar
    4 years ago
    Ryan

    I'm going to assume your field is calling [Invoice Date].  I'm typing on an ipad from a hotel room with a beer, so hopefully this will work. 


    Try this. Make two fields.  The first is called [Billing Period Start of Invoice Date]

    var date MyDate = [Invoice Date]; 
    var number DayNumber = IF(Day($MyDate) <= 15, 1, 16);

    Date(Year($MyDate), Month($MyDate), $DayNumber)

    // the formula above will return the date of the start of the Billing Period. 

    Then duplicate the field and call it [Billing Period Start of Today]

    but change the date field to be Today()

    var date MyDate = Today();
    var number DayNumber = IF(Day($MyDate) <= 15, 1, 16);

    Date(Year($MyDate), Month($MyDate), $DayNumber)


    now easy peasy, just filter the Report where those  two fields are equal. 

    Post back if you have have any problems. I'm cycling so I will be slow to respond. 




    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------