Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

High Level Indicator

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 :

  1. Week on Week the Absences are Reducing/Increasing
  2. Week on Week the Temp Staff are Reducing or Increasing

eg something like

absences.PNG   temp_staf.PNG

is this possible?

Many thanks,

Phil

7 Replies
Anil_Babu_Samineni

Yes, This is possible with 4 objects and not from 2 objects

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
jpenuliar
Partner - Specialist III
Partner - Specialist III

Have a look at the Sample App "Prescription Tracker". It has a solid example of what you  want to achieve.

prees959
Creator II
Creator II
Author

Hi thanks for the replies - I'm asking more about calculating the week-on-week figures.

maxgro
MVP
MVP

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

prees959
Creator II
Creator II
Author

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




maxgro
MVP
MVP

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

1.png