I have 2 lookup tables; Members (83,000 rows) and Groups (2,500 rows).
There are 2 fact tables; GroupMembers (190,000 rows) and Metrics (650,000 rows).
I created two separate models:
1. Members, Groups and GroupMembers
2. Members, Groups and Metrics
Both models have only one calculated measure on the fact table (COUNTROWS). If I bring in the Members>MemberID on Rows and Filter on Groups>GroupID, using CountRows for values; model 2 performs super fast and model 1 is really slow.
Here are the DAX query results.
Model 1:
Model 2:
The only difference between the two fact tables is that GroupMembers only has unique combinations of Groups and Members, whereas the Metrics table has other columns so the Groups and Members combinations are not unique.
Both excel files can be found here: http://1drv.ms/1GdK1WK
Please help!
[EDIT] I did some further testing and found that if I duplicate the data in GroupMembers (i.e. load the same 190,000 rows twice so GroupID/UserID combination is not unique), the performance is great. Go figure! :)
I'm opening a support case with MS and will update this thread.