Help on Using Date Functions within DAX Measures
i trying max date lookup table , pass dax measure. throws following error:
a function 'max' has been used in boolean expression used table filter expression. not allowed.
here measure trying create. how can in dax without hard coding in date?
=sumx(filter(raw_data, raw_data[filter_date]>=dateadd(max(act_rel_date_lookup[act_rel_date]),-12,month))
hi whalensdad
you can use function lastdate. example, query below gets last date has related 'reseller sales amount' data available.
calculate( lastdate( dimdate[fulldatealternatekey] ), filter( factresellersales, factresellersales[salesamount] > 0 ) )
javier guillen
http://javierguillen.wordpress.com/
SQL Server > Power Pivot
Comments
Post a Comment