Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have 2 measures, sum(absences) and & sum(temp_workers), that I have in a single chart with WeekNumber on the x-axis.
What I would like to do is take these two measures and create two single textbox expressions at the top of my dashboard that portray that for what ever date range I have selected :
eg something like
is this possible?
Many thanks,
Phil
Yes, This is possible with 4 objects and not from 2 objects
Have a look at the Sample App "Prescription Tracker". It has a solid example of what you want to achieve.
Hi thanks for the replies - I'm asking more about calculating the week-on-week figures.
if you have a Calendar with a serial week
you can calculate the % as
=
num(
(
sum({$<WeekSerial={'$(=max(WeekSerial))'},Year=,Month=,Date=>} Val)
-
sum({$<WeekSerial={'$(=max(WeekSerial)-1)'},Year=,Month=,Date=>} Val)
)
/
sum({$<WeekSerial={'$(=max(WeekSerial)-1)'},Year=,Month=,Date=>} Val)
, '#.##0%')
You can find a small example in the attachment
Hi, I'm getting some very large percentages with this solution. Will I have to include every field from my calendar in this section :
sum({$<WeekSerial={'$(=max(WeekSerial))'},Year=,Month=,Date=>} Val) ?
Many thanks again,
Phil
yes, the
Year=,Month=,Date=
is used to disregard the selections in Year, Month and Date fields
You can see the difference when I select a date
In the red box (set analysis without Year=,Month=,Date=), the result is that date, not the week of that date and the week before is 0