Forum Discussion
Create new table by filtering column value
- 8 years ago
Hi I Finally got the answer,
I created the new table by applying the formula using calculate table function.
Distinctreceiptdump = CALCULATETABLE(Receiptdump,filter(Receiptdump,Receiptdump[Count]=1))
Hi Kumshan450,
I am not sure you are able to create a calculated table of multiple columns in Power Pivot. In Power BI you can create a calculated talble to do this using the DAX formula
Table = SUMMARIZE(Receiptdump,Receiptdump[Receipt no],Receiptdump[BPIS NO],Receiptdump[BPIS Date])
Using Power Pivot and DAX I'd suggest trying my method above. Otherwise maybe biting the bullet and creating this in the query editor. How many rows of data are we talking that causes the refresh to take so long?
Best,
Kris
Hi, It will not filter out the below sample which is also a duplicate
| Receipt no | BPIS NO | BPIS Date | Mapping status | Count |
| C00935218006625 | 1015x | 28-01-2018 | MAPPED | 2 |
| C00935218006625 | 1016x | 28-01-2018 | MAPPED | 2 |
However, I applied the calculate table function which is giving me distinct values.
Distinctreceiptdump = CALCULATETABLE(Receiptdump,filter(Receiptdump,Receiptdump[Count]=1))
Why am I totally against removing duplicates in power query stage? Removing duplicate step dont fit large volume of data. I am handlling around 20 lakh rows of data. IF suppose i add additional months and refresh OH god I have to wait for months to load the query in data model.