cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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.


I have book! Learn Power BI from Packt


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.


I have book! Learn Power BI from Packt


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.


I have book! Learn Power BI from Packt


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
Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 335 members 3,558 guests
Please welcome our newest community members: