Forum Discussion
UncleLewis
3 years agoResponsive Resident
DAX INDEX Function Returns Null
Hi all, I'm working through this video tutorial from SQLBI on Window Functions - I'm at 16:52 in the video. I'm trying to get the base year sales to compare to all subsequent years, only that my ...
Ahmedx
3 years agoSuper User
plse try this
DAX Studio:
EVALUATE
SUMMARIZECOLUMNS (
'Product'[BrandName],
'Calendar'[Year],
"Sales Amount",[Sales Amount],
"Sales First Year",
CALCULATE(
[Sales Amount],
INDEX(
1, SUMMARIZE (ALLSELECTED('Product'),Product'[BrandName],'Calendar'[Year] ),
ORDERBY( 'Calendar'[Year] )
)
)
)