Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Solved! Go to Solution.
Hi @Asim458,
I suppose you want something like that :
Top25Skus =
VAR SelectedBrand = SELECTEDVALUE('Shift item codes'[Brand])
VAR SixMonthsAgo = EOMONTH(TODAY(), -6) + 1
RETURN
CALCULATE(
SUMX(
TOPN(
25,
FILTER(
'Shift item codes',
'Shift item codes'[Brand] = SelectedBrand && 'Shift item codes'[Date] >= SixMonthsAgo
),
[Total Purchases],
DESC
),
[Total Purchases]
)
)
Hi @Asim458,
I suppose you want something like that :
Top25Skus =
VAR SelectedBrand = SELECTEDVALUE('Shift item codes'[Brand])
VAR SixMonthsAgo = EOMONTH(TODAY(), -6) + 1
RETURN
CALCULATE(
SUMX(
TOPN(
25,
FILTER(
'Shift item codes',
'Shift item codes'[Brand] = SelectedBrand && 'Shift item codes'[Date] >= SixMonthsAgo
),
[Total Purchases],
DESC
),
[Total Purchases]
)
)