Hi all,
I'm learning DAX Query by the example in page(http://www.sqlservercentral.com/articles/DAX/97522/).
When I test the example in section 'Row and Filter Context',I find CALCULATE and ALL fail to ignore the current context, and my result is shown below.I test it in DirectQuery and In-Memory model,the result is the same.I can't find the problem.The expect result is in the example page,the forum don't permit me upload the image.
Any help is much appreciated .
define measure 'FactInternetSales'[Sum of Sales] = SUM('FactInternetSales'[SalesAmount] ) measure 'FactInternetSales'[Product Universe] = calculate( 'FactInternetSales'[Sum of Sales], ALL(DimProduct[EnglishProductName] ) ) evaluate( summarize( 'FactInternetSales', 'DimSalesTerritory'[SalesTerritoryRegion], DimProduct[EnglishProductName], 'DimDate'[CalendarYear],"Sum of Sales", [Sum of Sales],"Product Universe", [Product Universe] ) ) order by 'DimSalesTerritory'[SalesTerritoryRegion] ,DimProduct[EnglishProductName] ,'DimDate'[CalendarYear] [Region] [EnglishProductName] [CalendarYear] [Sum of Sales] [Pduct Universe] Australia All-Purpose Bike Stand 2013 9540 9540 Australia All-Purpose Bike Stand 2014 795 795 Australia AWC Logo Cap 2012 17.98 17.98 Australia AWC Logo Cap 2013 3676.91 3676.91 Australia AWC Logo Cap 2014 116.87 116.87 Australia Bike Wash - Dissolver 2013 1661.55 1661.55 Australia Bike Wash - Dissolver 2014 47.7 47.7 Australia Classic Vest, L 2013 2667 2667 Australia Classic Vest, L 2014 127 127 Australia Classic Vest, M 2013 2286 2286 Australia Classic Vest, M 2014 190.5 190.5 Australia Classic Vest, S 2013 1905 1905
By the way,in the online example,RANKX function in my test also has no effect,no matter how you test,the rank score is 1 all the rows.I feel the problem is the similar,but I can't find what is wrong.