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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
tracycrown
Creator III
Creator III

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 

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!