Forum Discussion
Power Query: Extract distinct values from column as new query
- Anonymous9 years ago
Hi Anonymous,
You can try to create a blank query to reference original source, then use list.distinct to remove duplicate records.
let DistinctSource = List.Distinct(Sheet2[Date])// List.Distinct(QueryName[ColumnName]) in DistinctSourceSheet2(22582 rows) -> Date(953 rows)
Regards,
Xiaoxin Sheng
Hi Anonymous,
You can try to create a blank query to reference original source, then use list.distinct to remove duplicate records.
let
DistinctSource = List.Distinct(Sheet2[Date])// List.Distinct(QueryName[ColumnName])
in
DistinctSource
Sheet2(22582 rows) -> Date(953 rows)
Regards,
Xiaoxin Sheng
- BiBra8 years agoHelper III
I have a question for this. I am trying to do this myself:
you write // List.Distinct(QueryName[ColumnName]), is this the new query you're working in?If not, what is it?
- NotHappyAtAll2 years agoFrequent Visitor
This works. But the query still refreshes all the 1.5 million records! So it does not solve the question.
That means you still have to wait for the query to finish once more. This is made like this to "make shure" Power-Bi have all the data once more pulled from the souse. Quite annoying actually. - nsampath1 year agoRegular Visitor
Thanks for posting the solution, it definitely helped me tackle the problem that I was facing.