Hi, i would like to calculate the number of the AdventureWorks customers for the first year of Adventureworks Orderdate, so i have this mesure :
NbCustomersFirstYearOrderDate:=CALCULATE(DISTINCTCOUNT(FactInternetSales[CustomerKey]); Calendar[Year]=YEAR(FIRSTDATE(FactInternetSales[OrderDate])))
But it doesn't work
So, i have tried to play with FILTER and ALL, but it doesn't work and or i have the number of customer for each year ,if i create a pivot by year
I would like to have the same number of customers whatever the year
Have you an idea ?
Thanks
Laurent
NbCustomersFirstYearOrderDate:=CALCULATE(DISTINCTCOUNT(FactInternetSales[CustomerKey]); Calendar[Year]=YEAR(FIRSTDATE(FactInternetSales[OrderDate])))
But it doesn't work
So, i have tried to play with FILTER and ALL, but it doesn't work and or i have the number of customer for each year ,if i create a pivot by year
I would like to have the same number of customers whatever the year
Have you an idea ?
Thanks
Laurent