RyanLocke1
4 years agoQrew Cadet
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-monthly 1-15th and 16th-30th or 31st.
I was hoping a user could enter a billing record and chose 08/05/2021 and once they save and close the record their dashboard will have a "Current Billing Period" report so they only see the entries for the Current Billing Period whatever date it falls in, and once we get to August 16th the report will refresh with just those entries.
Is there a good way to do that?
Or a calculated date field that would some how make a string like 08-01-2021 - 08-15-2021, based on the date would be great too.
Thank you,
Ryan
------------------------------
Ryan Locke
------------------------------
- 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
------------------------------