## How does the TRUEfunction (DAX) work?

The TRUE function (DAX) returns the logical value TRUE.

TRUE(

)

## How do you use the TRUE function?

It is a very useful function when you want to return the output as TRUE based on a condition. A TRUE function is the same like Boolean value TRUE. It’s also called a conditional function.

A TRUE function can be used with other logical functions like IF, ERROR etc.

## Related Support Forum Posts

SWITCH True Logic Explained
FTE Calculation after Switch True Logic
Switch True with measure between range values

## Considerations when using the TRUE function

If you want to enter TRUE, or provide TRUE as a result in a formula, you can just use enter the word TRUE directly into a cell or formula and Excel will interpret this as the logical value TRUE.

Also note that logical expressions themselves will automatically generate TRUE and FALSE results.

## Formula examples using the TRUE function

= IF(SUM(‘InternetSales_USD'[SalesAmount_USD]) >200000, TRUE(), false())

=IF(A1<0, TRUE())

=IF(A12>30,TRUE())