Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello guys,
I have two queries in my Excel file via connection.
Both queries are connected to tables with an identical structure (columns).
Only some of the rows are different.
I want to append query 1 with query 2 and only keep the rows which are unique.
(So not only removce duplicates but also remove all rows that are not unique).
Query 1 and query 2 both have an index column.
Solved! Go to Solution.
Hi @deboec ,
Try this:
1. Append the two tables.
2. Group the appended table based on your requirements and add a "count" column to count rows at the same time.
3. Only keep the rows which "count"=1.
4. Expand the table.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @deboec ,
Try this:
1. Append the two tables.
2. Group the appended table based on your requirements and add a "count" column to count rows at the same time.
3. Only keep the rows which "count"=1.
4. Expand the table.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@deboec , you might want to create a blank query
= Table.Distinct(#"query 1" & #"query 2")
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
@CNENFRNL
If I use this sintax the blank query basically only appends the two queries.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.