Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
MikeJones
Creator
Creator

Total and Averages in a table

Hi, the first four columns of the table below shows my output from a table.  Total installs at 760 is the sum the of week's installs, whilst 8 shows the average number of employees working for the whole week. 

New No of Employees is the column I wish to generate.  Instead of showing 8 as the average, I wish to show the average only for Monday to Friday at 10.  I need to show the number working on Saturday & Sunday and installs for the whole week.  Any ideas as to how I could do this?

    Total No New No
    Installs Employees Employees
    760 8 10
2023-01-09 Mon 100 10 10
2023-01-10 Tue 120 10 10
2023-01-11 Wed 140 10 10
2023-01-12 Thu 160 10 10
2023-01-13 Fri 180 10 10
2023-01-14 Sat 50 4 4
2023-01-15 Sun 10 2 2
Labels (2)
1 Reply
MayilVahanan

Hi

Try like 
If(Rowno() = 0, Avg({<Weekday-={'Sat', 'Sun'}>}ur_employee_field), ur_original_exp)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.