Forum Discussion
BlakeHarrison
4 years agoQrew Captain
Since the math gets funky when dealing with percentages, you'll need to calculate this value on a table that is a Parent to these Sales. This is the process that I would suggest:
------------------------------
Blake Harrison
bharrison@datablender.io
DataBlender - Quick Base Solution Provider
Atlanta GA
404.800.1702 / http://datablender.io/
------------------------------
- Create a general 'Metrics' table and create 1 record on this table
- Create a relationship from the 'Metrics' table to the 'Sales' table
- Pull a report on the 'Sales' table that includes the new 'Related Metric' field and, using the 'Search and Replace in this Report' change the value of 'Related Metric' to 1
- Create relationships from the 'Metrics' table to the tables for 'Employees' and 'Period', making the 'Metrics' table the Child
- Create Lookup fields from the 'Metrics' table to the 'Sales' table for 'Related Employee' and 'Related Period'
- On the 'Sales' table, create a Formula Checkbox field called 'Include in Metrics Report' with the following criteria:
- ('Lookup Employee'=0 AND 'Lookup Period' =0) OR
- ('Lookup Employee'='Related Employee' AND 'Lookup Period' =0) OR
- ('Lookup Employee'=0 AND 'Lookup Period' ='Related Period') OR
- ('Lookup Employee'='Related Employee' AND 'Lookup Period' ='Related Period')
- On the 'Metrics' table, create 4 fields:
- A summary field for 'Project Estimate', filtered by 'Include in Metrics Report'
- A summary field for 'Project Sale', filtered by 'Include in Metrics Report'
- A formula field for Sales Ratio, using the previous 2 summary fields to calculate your value
- A report link field that uses 'Record ID#' on the 'Metrics' table as both sides of the matching setup
- On the 'Metrics' table, create your Gauge Report using the 'Sales Ratio' field as the value to measure
- On the 'Metrics' table, setup your form with your 2 selection fields and an embedded report for the 'Sales' table, selecting your new report as the report to display
------------------------------
Blake Harrison
bharrison@datablender.io
DataBlender - Quick Base Solution Provider
Atlanta GA
404.800.1702 / http://datablender.io/
------------------------------