Export (0) Print
Expand All

TRUE Function

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Returns the logical value TRUE.

Always TRUE.

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

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

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-False

Column Labels

 

 

 

 

 

Row Labels

2005

2006

2007

2008

 

Grand Total

Accessories

FALSE

FALSE

TRUE

TRUE

FALSE

TRUE

Bikes

TRUE

TRUE

TRUE

TRUE

FALSE

TRUE

Clothing

FALSE

FALSE

FALSE

FALSE

FALSE

TRUE

Components

FALSE

FALSE

FALSE

FALSE

FALSE

FALSE

 

FALSE

FALSE

FALSE

FALSE

FALSE

FALSE

Grand Total

TRUE

TRUE

TRUE

TRUE

FALSE

TRUE

= IF(SUM('InternetSales_USD'[SalesAmount_USD]) >200000, TRUE(), false())
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft