Working with Data: All the calculations you need t
  • Introduction
  • What is this book?
  • How to Use this Book
  • Document Notes
  • Authors' Thanks
  • Strings
    • Concatenate
    • Split
    • Length
    • Slice
    • Trim
    • Contains
    • Match
    • Replace
    • Upper/Lower Case
  • Numbers
    • Sum
    • Average
    • Roll Ups
    • Round
    • Floor
    • Power
    • Square Root
    • Absolute
  • Dates
    • Date Difference
    • Age
  • Logical
    • Logical Operators
    • If
    • Case / Switch
    • Is Null/Empty
  • General
    • Count
    • Filter
    • Sort
    • Lookup/Join
    • Variables
    • Convert Type
  • Appendix
    • DateTime Parts
    • Helpful Resources
Powered by GitBook
On this page
  • Excel
  • Tableau
  • Alteryx
  • OrgVue
  • tSQL
  • Python

Was this helpful?

  1. General

Filter

PreviousCountNextSort

Last updated 5 years ago

Was this helpful?

Excel

Go to the Data tab > Filter or use keyboard shortcut Ctrl-Shift-L. By default this will allow you to filter any column within the range of data containing the currently highlighted cell. Select a range of columns before clicking Filter to allow filtering only within those columns.

Tableau

Drag fields to the Filter card or Right-click > Show Quick Filter

Alteryx

Use the Filter tool (in the Preparation palette).

Use either the basic filter option to set a quick filter or use a custom expression to define the filter criteria. Both True|False outcomes are provided

OrgVue

Use the Filter or Pages controls, or, to include the filter in an expression: ‹array›.~filter!~(n => ‹logical_test›)

nodes().filter(n=> n.gender == "Female")

tSQL

SELECT ‹field› FROM ‹table› ~WHERE!~ ‹condition›

SELECT * 
FROM EmployeesData
WHERE Gender="Female"

Python

~filter!~(~lambda n:!~ ‹logical_test›, ‹array›)

filter(lambda n: n.gender=="Female", gender)

This assumes that the variable gender is an array containing objects. If you want to filter from a simple array of strings, you can replace the n.gender== with n==:

filter(lambda n: n=="Female", gender)

NB. The above example assumes a variable has been declared for gender. For more information, go to .

General > Variables