MCQs on QlikView Expressions and Functions | Qlikview MCQ Questions

Unlock the power of QlikView expressions and functions with these 30 MCQs. Dive into key topics like aggregation functions, set analysis, calculated dimensions and measures, and conditional formatting for dynamic data analysis.


Using Aggregation Functions (Sum, Count, Avg)

  1. Which of the following aggregation functions in QlikView calculates the total of a numeric field?
    • a) Sum
    • b) Avg
    • c) Count
    • d) Min
  2. What does the Count() function in QlikView return?
    • a) The number of distinct values
    • b) The total sum of a field
    • c) The number of records or rows
    • d) The average value of a field
  3. In QlikView, which function would you use to calculate the average of a numeric field?
    • a) Sum()
    • b) Avg()
    • c) Count()
    • d) Median()
  4. How does QlikView handle null values when using aggregation functions?
    • a) It ignores them in calculations
    • b) It replaces them with zeros
    • c) It counts them as 1
    • d) It throws an error
  5. Which of the following aggregation functions would be most appropriate to count the number of unique items in a dataset?
    • a) Count()
    • b) CountDistinct()
    • c) Sum()
    • d) Avg()
  6. What would the function Sum(Sales) return in QlikView?
    • a) The total of all values in the Sales field
    • b) The average of all values in the Sales field
    • c) The count of non-null values in the Sales field
    • d) The highest value in the Sales field
  7. Which QlikView function returns the minimum value of a field?
    • a) Min()
    • b) Max()
    • c) Avg()
    • d) Sum()
  8. How do you calculate the total sales for a specific region using aggregation in QlikView?
    • a) Sum(Sales) where Region = ‘North’
    • b) Sum(Region, Sales)
    • c) Count(Sales) where Region = ‘North’
    • d) Avg(Sales) where Region = ‘North’
  9. What function can be used to find the median value in a dataset in QlikView?
    • a) Median()
    • b) Mode()
    • c) Count()
    • d) Avg()
  10. Which aggregation function would you use to get the maximum value in a numeric field in QlikView?
  • a) Min()
  • b) Max()
  • c) Sum()
  • d) Count()

Mastering Set Analysis

  1. What does Set Analysis in QlikView allow you to do?
  • a) Perform aggregations based on dynamic selections
  • b) Create complex calculated fields
  • c) Filter data permanently
  • d) Sort the data
  1. Which syntax is correct for a basic Set Analysis expression in QlikView?
  • a) Sum({$<Region=’North’>} Sales)
  • b) Sum({Region=’North’}) Sales
  • c) Sum({Region=’North’} Sales)
  • d) Sum(Sales) where Region=’North’
  1. In Set Analysis, what does the dollar sign expansion ($) represent?
  • a) The current selection state
  • b) A specific value
  • c) A predefined variable
  • d) A fixed set of values
  1. How would you calculate the total sales for all regions excluding ‘North’ in Set Analysis?
  • a) Sum({$<Region-={‘North’}>} Sales)
  • b) Sum(Sales) where Region != ‘North’
  • c) Sum({Region-={‘North’}} Sales)
  • d) Sum({$<Region=’North’>} Sales)
  1. How would you calculate the sales for the current month using Set Analysis?
  • a) Sum({$<Month=Date(Today(), ‘YYYY-MM’)>} Sales)
  • b) Sum(Sales) where Month = ‘Current’
  • c) Sum({$<Month=’Current’>} Sales)
  • d) Sum(Sales) in Month = Date(Today(), ‘YYYY-MM’)
  1. Which symbol in Set Analysis allows you to perform a union of data sets?
  • a) +
  • b) &
  • c) |
  • d) –
  1. How do you exclude a specific selection from a Set Analysis expression in QlikView?
  • a) Use the minus sign (-)
  • b) Use the exclamation mark (!)
  • c) Use the dollar sign expansion
  • d) Use the plus sign (+)
  1. What is the correct syntax for calculating the total sales where the product is ‘Laptop’ in Set Analysis?
  • a) Sum({$<Product=’Laptop’>} Sales)
  • b) Sum({Product=’Laptop’}) Sales
  • c) Sum(Sales) where Product = ‘Laptop’
  • d) Sum({Product=’Laptop’})
  1. Can Set Analysis be used in QlikView to create historical comparisons?
  • a) Yes, using time-based fields in the Set Analysis expression
  • b) No, Set Analysis only works for current data
  • c) Yes, but only for financial data
  • d) No, Set Analysis is not used for comparisons
  1. Which of the following is a limitation of Set Analysis in QlikView?
  • a) It cannot be used with aggregate functions
  • b) It does not support dynamic filtering
  • c) It cannot be used for complex logic
  • d) It cannot reference field values directly

Creating Calculated Dimensions and Measures

  1. What is a calculated dimension in QlikView?
  • a) A dimension created based on an existing field
  • b) A dimension created from an expression or formula
  • c) A dimension based on aggregated data
  • d) A predefined system field
  1. How do you create a calculated measure in QlikView?
  • a) By using the “Expression” field in the Measure section
  • b) By using the “Data” section in the script editor
  • c) By applying the Set Analysis function to a measure
  • d) By concatenating fields
  1. Which of the following expressions can be used to create a calculated measure in QlikView?
  • a) Sum(Sales * Tax)
  • b) Sum(Total Sales)
  • c) Avg(Price)
  • d) Count(CustomerID)
  1. How would you create a new calculated dimension that groups sales into ‘High’, ‘Medium’, and ‘Low’?
  • a) If(Sales > 1000, ‘High’, If(Sales > 500, ‘Medium’, ‘Low’))
  • b) Sum(Sales > 1000)
  • c) Count(Sales > 500)
  • d) Avg(Sales > 1000)
  1. Which of the following functions can be used to create a calculated dimension based on a time range in QlikView?
  • a) Date()
  • b) If()
  • c) Year()
  • d) All of the above
  1. What is the advantage of using calculated measures in QlikView?
  • a) They allow for dynamic aggregation based on selections
  • b) They reduce data storage requirements
  • c) They can only be used in tables
  • d) They improve performance by simplifying data
  1. How do you format a calculated dimension or measure in QlikView?
  • a) Use the “Number Formatting” option
  • b) Format it in the script editor
  • c) Use CSS for styling
  • d) Use Set Analysis for formatting
  1. How can you handle null values when creating calculated dimensions or measures?
  • a) Use the If() function to replace null values
  • b) Ignore null values
  • c) Replace null values with zeros
  • d) Both a and c
  1. Can you use a calculated dimension in a QlikView chart?
  • a) Yes, as a regular dimension
  • b) No, only as a filter
  • c) Yes, but only in table charts
  • d) No, calculated dimensions are not allowed
  1. How would you display the total sales for the top 5 products using a calculated measure in QlikView?
  • a) Sum(Total Sales) where Rank(Product) <= 5
  • b) Sum(Sales) where Product in Top 5
  • c) Sum(Sales) using the Rank() function
  • d) Sum(Sales) where Product in ‘Top 5 Products’

Answer Key

QnoAnswer (Option with Text)
1a) Sum
2c) The number of records or rows
3b) Avg()
4a) It ignores them in calculations
5b) CountDistinct()
6a) The total of all values in the Sales field
7a) Min()
8a) Sum(Sales) where Region = ‘North’
9a) Median()
10b) Max()
11a) Perform aggregations based on dynamic selections
12a) Sum({$<Region=’North’>} Sales)
13a) The current selection state
14a) Sum({$<Region-={‘North’}>} Sales)
15a) Sum({$<Month=Date(Today(), ‘YYYY-MM’)>} Sales)
16b) &
17a) Use the minus sign (-)
18a) Sum({$<Product=’Laptop’>} Sales)
19a) Yes, using time-based fields in the Set Analysis expression
20d) It cannot reference field values directly
21b) A dimension created from an expression or formula
22a) By using the “Expression” field in the Measure section
23a) Sum(Sales * Tax)
24a) If(Sales > 1000, ‘High’, If(Sales > 500, ‘Medium’, ‘Low’))
25d) All of the above
26a) They allow for dynamic aggregation based on selections
27a) Use the “Number Formatting” option
28d) Both a and c
29a) Yes, as a regular dimension
30a) Sum(Total Sales) where Rank(Product) <= 5

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top