Search code examples
ssasssas-2012

SSAS 2012, showing duplicate names when querying in Excel


I need some basic help with SSAS 2012. I have my employees dimension. Here is an example: enter image description here

Here is my hierarchy, the default one when creating the dimension:

enter image description here

My problem is that when querying the cube through excel, when showing only the name, it appears twice. I know it has two different IDs, but I am not showing the ID, just the Name in the columns and a value in the Metrics. It appears like this:

enter image description here

How do I make it group correctly?

Thanks


Solution

  • Change the KeyColumns of the Employee Code attribute to just the Employee Code field (the column called Name on your table). Including Employee Key as the key in the Employee Code attribute is the issue. It should just be in the KeyColumns for the EMPE KEY attribute.