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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
tracycrown
Specialist
Specialist

Average and Constant

Dear all

Please advise how to make headcount (No.of Students) to be fixed (ie. as numbers as worksheet, not average) with averages for English and Science subjects in one report.

Thank You for your help

Tracy 

Labels (1)
1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

You can use an if statement to evaluate one expression for number of students, then another for everything else like:

if(Result = 'Number of Students', sum(Data), RangeAvg(Before(Data),Data))

Hope this helps!

View solution in original post

1 Reply
jerem1234
Specialist II
Specialist II

You can use an if statement to evaluate one expression for number of students, then another for everything else like:

if(Result = 'Number of Students', sum(Data), RangeAvg(Before(Data),Data))

Hope this helps!