简体   繁体   中英

How to visualize more attributes of a dimension in Pivot table in Excel 2016

I have a SSAS cube where one dimension is "User".

User has many attributes, say "Email", "Mobile Number", "Address" and (many) more.

I build a Pivot table in Excel 2016 where I can easily find which Users, for instance, placed orders in the current month.

Now, I want to visualize for each of these users several of the possible attributes: I just need to easily get the list of email and mobile numbers of the users that placed orders in the current month.

If I drag the required attributes in the Pivot table though, these are used to further split each row: under each User in the Pivot there will be a level with just one Mobile Phone and this will be further divided in one email and so on.

What I need is, instead, keeping the division of the Fact "Order" only by the dimension User, and for each User to just visualize some more fields. What's the best way to achieve this?

The only way we can think of so far is to have an additional attribute with the concatenation (comma separated?) of all the needed information. But this is honestly horrible. The aim should be to have each of the additional attributes in its own excel cell.

I think you are looking for something like this ...

  1. Pivot-Table options -> Display -> Classic PivotTable layout
  2. For each field on your pivot table, Field Settings->Subtotals->None

From this raw data ...

在此处输入图片说明

And the options above, I generate this Pivot Table ...

在此处输入图片说明

I can't comment on Excel 2016, as I'm using XL 2013.

But in my pivot table, I can right-click on the default-displayed value for the dimension (I guess this would show the user Name for your User dimension - for me it's a Products dimension).[ 显示会员属性[1]

Then select "Show Properties in Report", and select the one you want.

What it shows is what you get in the Tooltip popup when you hover over the cell. It doesn't seem to treat these extra values as extra dimension levels, with a Cartesian-product relation to the leaf-level you're looking at: it correctly just reads one value per leaf member.

Is there maybe some switch in your dimension design you need to flip to get Excel to do this? My dimension has these "properties" as dimension attributes, with AttributeHierarchyVisible=True, AttributeHierarchyEnabled=False.

I only have 2 of these defined (Current Product Code and ID). For some reason this Excel functionality also includes the immediate parent level of the leaf level in the hierarchy (Category) as a "property".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM