TRUE

Returns the logical value TRUE.

Syntax

TRUE()

Return value

Always TRUE.

Remarks

The word TRUE is also interpreted as the logical value TRUE.

Example

The formula returns the logical value TRUE when the value in the column, ‘InternetSales_USD'[SalesAmount_USD], is greater than 200000.

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

The following table shows the results when the example formula is used in a PivotTable, with ‘ProductCategory'[ProductCategoryName] in Row Labels and ‘DateTime'[CalendarYear] in Column Labels.

True-FalseColumn Labels
Row Labels2005200620072008Grand Total
AccessoriesFALSEFALSETRUETRUEFALSETRUE
BikesTRUETRUETRUETRUEFALSETRUE
ClothingFALSEFALSEFALSEFALSEFALSETRUE
ComponentsFALSEFALSEFALSEFALSEFALSEFALSE
FALSEFALSEFALSEFALSEFALSEFALSE
Grand TotalTRUETRUETRUETRUEFALSETRUE

See also

FALSE function (DAX)
NOT function (DAX)
IF function (DAX)

***** Related Blog Posts *****
60 Page DAX Formula Reference Guide Download Now Available
Show Only Top Or Bottom Results Using Ranking Formula Techniques – Power BI & DAX
SWITCH True Logic Explained For Power BI

***** Related Video Tutorials *****
Ultimate Beginners Guide to DAX

What Is DAX? & Why Do You Need To Learn It – (1.2) Ultimate Beginner Guide to DAX
Formula Syntax, Comments & Variables – (1.6) Ultimate Beginners Guide to DAX
Examples Of Advanced DAX – (1.18) Ultimate Beginners Guide to DAX

***** Related Course Modules *****
Ultimate Beginners Guide to DAX
Mastering DAX Calculations
Solving Analytical Scenarios w/ Power BI and DAX
DAX Formula Deep Dives
Advanced DAX Combinations

***** Related Support Forum Posts*****
Mastering DAX Calculations: What Is DAX?
Understanding DAX Formula
Developing Complex Dax functions
SWITCH True Logic Explained
FTE Calculation after Switch True Logic
Switch True with measure between range values