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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.