TRUE
gäller för:beräknad kolumn
beräknad tabell
Mått
Visuell beräkning
Returnerar det logiska värdet TRUE
.
Syntax
TRUE()
Returvärde
Alltid TRUE
.
Kommentarer
Ordet TRUE
tolkas också som det logiska värdet TRUE
.
Exempel
Formeln returnerar det logiska värdet TRUE
när värdet i kolumnen InternetSales_USD[SalesAmount_USD] är större än 200000.
= IF(SUM('InternetSales_USD'[SalesAmount_USD]) >200000, TRUE(), false())
I följande tabell visas resultatet när exempelformeln används i en rapport med "ProductCategory"[ProductCategoryName] i radetiketter och "DateTime"[CalendarYear] i kolumnetiketter.
Radetiketter | 2005 | 2006 | 2007 | 2008 | - | Totalsumma |
---|---|---|---|---|---|---|
Accessoarer | FALSE |
FALSE |
TRUE |
TRUE |
FALSE |
TRUE |
Cyklar | TRUE |
TRUE |
TRUE |
TRUE |
FALSE |
TRUE |
Kläder | FALSE |
FALSE |
FALSE |
FALSE |
FALSE |
TRUE |
Komponenter | FALSE |
FALSE |
FALSE |
FALSE |
FALSE |
FALSE |
FALSE |
FALSE |
FALSE |
FALSE |
FALSE |
FALSE |
|
Totalsumma | TRUE |
TRUE |
TRUE |
TRUE |
FALSE |
TRUE |