xxxxxxxxxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
BestProducts =
CALCULATETABLE (
VAR MinSale = PERCENTILEX.INC ( 'Product', [Sales Amount], 0.95 )
VAR Result =
SELECTCOLUMNS (
FILTER (
ALL ( 'Product' ),
[Sales Amount] >= MinSale
),
"ProductKey", 'Product'[ProductKey],
"Product Name", 'Product'[Product Name]
)
RETURN Result,
'Date'[Calendar Year] = "CY 2008"
)