cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gtamir Member
Member

Splitting a Table into several tables based on the value of a column

Same question as: 

http://community.powerbi.com/t5/Desktop/Splitting-a-Table-into-two-based-on-the-value-of-a-column/td...

But what if I have a table combining data from 50 shops and I want to split it to a different table per shop.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Splitting a Table into several tables based on the value of a column

OK, assuming you have a query that is importing your data, in the Query Editor, filter that query to just the data for "shop 1". Right click the query and choose "Copy". Paste the query. Change the filter to be "shop 2". Rinse and repeat 48 more times.


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!


5 REPLIES 5
Super User
Super User

Re: Splitting a Table into several tables based on the value of a column

Interested in the use case for that. But I would just do that in the query editor and just copy and paste your query and change your filter.


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!


gtamir Member
Member

Re: Splitting a Table into several tables based on the value of a column

I am not sure I understood what I should do.

Super User
Super User

Re: Splitting a Table into several tables based on the value of a column

OK, assuming you have a query that is importing your data, in the Query Editor, filter that query to just the data for "shop 1". Right click the query and choose "Copy". Paste the query. Change the filter to be "shop 2". Rinse and repeat 48 more times.


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!


gtamir Member
Member

Re: Splitting a Table into several tables based on the value of a column

Yes, this is a bit of work but possible. Thanks

 

Nizamuddin New Member
New Member

Re: Splitting a Table into several tables based on the value of a column

Hello,

 

I need to split the rows based on the column value, is there any way to split or still I have to use the filter option? The resaon for asking this question is I have n number of dataset, it will be a pain to do filter option each time. I wanted to know is there any DAX/Script available to perform this repeated task. Please have a look to the screen shot below. Hope this make sense, please do contact me if you need further details about this.

 

Dataset.JPG

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

Top Ideas
Users Online
Currently online: 110 members 1,465 guests
Please welcome our newest community members: