Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Well I ended up rebuilding my excel file and divided it in various tables. Thanks anyway

View solution in original post

4 REPLIES 4
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

You mean you have table like this? And many more columns?Create groups of columns1.JPG

 

 

 

If so, how about unpivoting them?Create groups of columns2.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Then we can group them. Open the Drill mode. If we click the column, it expand all members of the group.

 Create groups of columns3.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

 

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

No, the rows are my columns

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

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Well I ended up rebuilding my excel file and divided it in various tables. Thanks anyway

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.