Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Same question as:
But what if I have a table combining data from 50 shops and I want to split it to a different table per shop.
Solved! Go to Solution.
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.
Hi,
This may not be a solution in PowerQuery as such but you could use a simple Python script to split a csv based on a value in a column (we do this) you could then maybe import all csvs into PowerQuery by importing from folder?
I've not tried this myself.
Let me know if you need the Python script I'll point you in the right direction.
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 am not sure I understood what I should do.
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.
@Greg_Deckler , thank you for posting that.
My use case is playing with the Bing COVID dataset. It has both aggregates and details in the same table (source csv), making a lot of extra work filtering on the visualization side to get correct numbers. By splitting it out in Power Query, it can be done once rather than for every visualization.
I'm curious from a performance and best practice standpoint, should I duplicate or reference the initial query that was imported from the csv?
Also, does filtering actually remove the rows from the file to keep the size under control better, or is it only hiding them?
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.
I am facing the same problem. Have anyone a solution?
Yes, this is a bit of work but possible. Thanks
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
120 | |
101 | |
71 | |
61 |