Poker Tableau Range
This article introduces number functions and their uses in Tableau. It also demonstrates how to create a number calculation using an example.
Manage Ranges comfortably with new functions for fast storage and quick suit selection. If singular cards have to be selected - like at the flop range selection -, then there is the 'Select Cards' button. This button is also available for ranges. Range fields, however, have also a 'Select Range' button to select multiple hands at once. Each poker deck has fifty-two cards, each designated by one of four suits (clubs, diamonds, hearts and spades) and one of thirteen ranks (the numbers two through ten, Jack, Queen, King, and Ace). Therefore, the odds of getting any Ace as your first card are 1 in 13 (7.7%), while the odds of getting any spade as your first card are 1 in 4 (25%).
Why use number functions
Number functions allow you to perform computations on the data values in your fields. Number functions can only be used with fields that contain numerical values. For more information, see Data Types.
For example, you might have a field that contains values for the variance in your budget, titled Budget Variance. One of those values might be -7. You can use the ABS function to return the absolute value of that number, and all the other numbers in that field.
The calculation might look something like this:
ABS[Budget Variance]
Therefore, ABS(-7) = 7.
Number functions available in Tableau
Function | Syntax | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ABS |
| Returns the absolute value of the given number. Examples:
The second example returns the absolute value for all the numbers contained in the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ACOS |
| Returns the arc cosine of the given number. The result is in radians. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ASIN |
| Returns the arc sine of a given number. The result is in radians. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ATAN | ATAN(number) | Returns the arc tangent of a given number. The result is in radians. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ATAN2 |
| Returns the arc tangent of two given numbers (x and y). The result is in radians. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CEILING |
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
COS |
| Returns the cosine of an angle. Specify the angle in radians. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
COT |
| Returns the cotangent of an angle. Specify the angle in radians. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DEGREES |
| Converts a given number in radians to degrees. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DIV | DIV(integer1, integer2) | Returns the integer part of a division operation, in which integer1 is divided by integer2. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EXP |
| Returns e raised to the power of the given number. Examples:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FLOOR |
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HEXBINX |
| Maps an x, y coordinate to the x-coordinate of the nearest hexagonal bin. The bins have side length 1, so the inputs may need to be scaled appropriately. HEXBINX and HEXBINY are binning and plotting functions for hexagonal bins. Hexagonal bins are an efficient and elegant option for visualizing data in an x/y plane such as a map. Because the bins are hexagonal, each bin closely approximates a circle and minimizes variation in the distance from the data point to the center of the bin. This makes the clustering both more accurate and informative. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HEXBINY |
| Maps an x, y coordinate to the y-coordinate of the nearest hexagonal bin. The bins have side length 1, so the inputs may need to be scaled appropriately. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LN |
| Returns the natural logarithm of a number. Returns | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LOG |
| Returns the logarithm of a number for the given base. If the base value is omitted, base 10 is used. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MAX |
| Returns the maximum of the two arguments, which must be of the same type. Returns Examples:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MIN |
| Returns the minimum of the two arguments, which must be of the same type. Returns Examples:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PI |
| Returns the numeric constant pi: 3.14159. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
POWER |
| Raises the number to the specified power. Examples:
You can also use the ^ symbol:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RADIANS |
| Converts the given number from degrees to radians. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ROUND |
| Rounds numbers to a specified number of digits. The Example: This example rounds every
Some databases, such as SQL Server, allow specification of a negative | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SIGN |
| Returns the sign of a number: The possible return values are -1 if the number is negative, 0 if the number is zero, or 1 if the number is positive. Example: If the average of the profit field is negative, then
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SIN |
| Returns the sine of an angle. Specify the angle in radians. Examples:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SQRT |
| Returns the square root of a number. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SQUARE |
| Returns the square of a number. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TAN |
| Returns the tangent of an angle. Specify the angle in radians.. Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ZN |
| Returns the expression if it is not null, otherwise returns zero. Use this function to use zero values instead of null values. Example:
|
Tableau Range Poker Mtt
Create a number calculation
Follow along with the steps below to learn how to create a number calculation.
In Tableau Desktop, connect to the Sample - Superstore saved data source, which comes with Tableau.
Navigate to a worksheet and select Analysis > Create Calculated Field.
In the calculation editor that opens, do the following:
Name the calculated field Minimum Sales transaction
Enter the following formula:
MIN(Sales)
When finished, click OK.
The new number calculation appears under Measures in the Data pane. Just like your other fields, you can use it in one or more visualizations.
When Minimum Sales is placed on Text on the Marks card in the worksheet, its name is changed to AGG(Minimum Sales), which indicates that it cannot be aggregated any further, since it is already aggregated down to the lowest level of detail (the smallest sales value for all records).
This example shows the minimum sales per category.
When subcategory is brought into the view, the minimum sales for each subcategory are shown.
See Also
Poker Hand Range Table
This is a simple program for creating colored pre flop ranges that you can use in documents or as a background to guide you while playing.
The program is very simple, it has 10 colors that you can customize and 3 background colors. The you have some buttons that colors a subset of hands such as pocket pairs, broadway cards, suited aces etc. The save button that saves a screenshot as a png in the folder the program is located.
You can right click to set to background color.
Here is a screenshot of the program.
Tableau Range Poker Cash Game
Here is a screenshot of the output.