Hi everyone
I have a scenario for a KPI dashboard where based on a month selected, I need to calculate the number of jobs that were classed as overdue at that point in time.
I have a dashboard with a filter which selects ALL dates based on a month selection, and this is necessary as there are other metrics on the dashboard which are filtering normally to only show for instance the number of jobs completed in said month etc.
However I need to write a formula such as
var SelectedMonth = GO GET THE MONTH SELECTED IN THE FILTER AND CALCULATE LAST DAY OF MONTH…OR IF MONTH SELECTED IS CURRENT MONTH GET YESTERDAYS DATE
if($targetdate$<=SelectedMonth&&
($completedate$>SelectedMonth||$completedate$==null)&&
$takendate$<=SelectedMonth);
return $JobOID$
The question is, can I ask a formula in a metric to look at the filter first and if so how? and then once I have done this can the parts in capitals work.
This is something I have managed in another reporting software, but I am struggling with a few elements as only been using Dundas for 6 weeks, and I also wonder if I am completely barking up the wrong tree with my approach
As always any assistance would be really appreciated.
Thanks
Chris