Forum Discussion
Create groups of columns
My table has the following collumns
Stock Total - E1 - N0 - Product 1
Stock Total - E1 - N1 - Product 2
Stock Total - E1 - N2 - Product 3
Stock Total - E2 - N0 - Product 1
Stock Total - E2 - N1 - Product 2
Stock Total - E2 - N2 - Product 3
and so on.. more products types
Can I create a group of columns for E1 and E2 and then if I select the group on a visual, all corrresponding columns would show up? Otherwise, it's too many columns.. I know I could make relationships and create a olap cube, but if this is possible, then it's easier for me
- Anonymous8 years ago
Well I ended up rebuilding my excel file and divided it in various tables. Thanks anyway
4 Replies
- v-jiascu-msftMicrosoft Employee
Hi Anonymous,
You mean you have table like this? And many more columns?
If so, how about unpivoting them?
Then we can group them. Open the Drill mode. If we click the column, it expand all members of the group.
Best Regards!
Dale
- AnonymousNot applicableNo, the rows are my columns
- v-jiascu-msftMicrosoft Employee
Hi Anonymous,
How about unpivoting them into rows? For example, one column is "Date". All the rows will be dates. If we want to sum up by month, we only need to add a condition "month([Date]) = 1". While if the dates are in columns, we have to do it like this: [column1] + [column2] + ... ... + [column31].
Best Regards!
Dale