A
C
- CALCULATE
- CALCULATETABLE
- CALENDAR
- CALENDARAUTO
- CEILING
- CHISQ.DIST
- CHISQ.DIST.RT
- CHISQ.INV
- CHISQ.INV.RT
- CLOSINGBALANCEMONTH
- CLOSINGBALANCEQUARTER
- CLOSINGBALANCEYEAR
- COALESCE
- COLUMNSTATISTICS
- COMBIN
- COMBINA
- COMBINEVALUES
- CONCATENATE
- CONCATENATEX
- CONFIDENCE.NORM
- CONFIDENCE.T
- CONTAINS
- CONTAINSROW
- CONTAINSSTRING
- CONTAINSSTRINGEXACT
- CONVERT
- COS
- COSH
- COT
- COTH
- COUNT
- COUNTA
- COUNTAX
- COUNTBLANK
- COUNTROWS
- COUNTX
- COUPDAYBS
- COUPDAYS
- COUPDAYSNC
- COUPNCD
- COUPNUM
- COUPPCD
- CROSSFILTER
- CROSSJOIN
- CUMIPMT
- CUMPRINC
- CURRENCY
- CURRENTGROUP
- CUSTOMDATA
D
E
I
N
O
P
R
S
- SAMEPERIODLASTYEAR
- SAMPLE
- SEARCH
- SECOND
- SELECTCOLUMNS
- SELECTEDMEASURE
- SELECTEDMEASUREFORMATSTRING
- SELECTEDMEASURENAME
- SELECTEDVALUE
- SIGN
- SIN
- SINH
- SLN
- SQRT
- SQRTPI
- STARTOFMONTH
- STARTOFQUARTER
- STARTOFYEAR
- STDEVX.P
- STDEVX.S
- STDEV.P
- STDEV.S
- SUBSTITUTE
- SUBSTITUTEWITHINDEX
- SUM
- SUMMARIZE
- SUMMARIZECOLUMNS
- SUMX
- SWITCH
- SYD
T
U
Syntax of the ISEVEN Function
The syntax of the ISEVEN function is as follows:
ISEVEN(❰number❱)
where `❰number❱` is the number that you want to check for evenness.
Examples of the ISEVEN Function
Let's take a look at some examples to understand how the ISEVEN function works.
Example 1
Suppose we have a table `Sales` with a column `Amount` that contains the following values:
| Amount |
|--------|
| 100 |
| 75 |
| 50 |
| 25 |
| 0 |
To check whether each value in the `Amount` column is even or odd, we can create a new calculated column using the following DAX formula:
IsEven = ISEVEN(Sales[Amount])
This will return the following values:
| Amount | IsEven |
|--------|--------|
| 100 | TRUE |
| 75 | FALSE |
| 50 | TRUE |
| 25 | FALSE |
| 0 | TRUE |
Example 2
Suppose we have a table `Employees` with a column `Age` that contains the following values:
| Age |
|-----|
| 25 |
| 32 |
| 47 |
| 54 |
| 61 |
To filter out the employees whose age is odd, we can create a new measure using the following DAX formula:
EvenAgeCount = CALCULATE(COUNT(Employees[Age]), ISEVEN(Employees[Age]))
This will return the count of employees whose age is even.
The ISEVEN function in Power BI's DAX formula language is a handy tool to determine whether a given number is even or odd. It can be used in various scenarios, such as filtering out odd values or calculating even values. By understanding the syntax and examples of the ISEVEN function, you can leverage its power in your Power BI reports and dashboards.