Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello.
I am new to PowerBI, I am trying to filter two same columns from two different sheets. How can I do that. Let me explain you my problem clearly.
say for example I have two excel sheets T1 and T2.
T1 T2
C1 C2 C1 C2 C3 C4
134 245 134 245 ....... .......
123 345 123 345 ...... ......
234 453 234 453 ....... .......
if c1 and c2 from T1 is equal to c1 and c2 in T2, then i want the complete row if it matches.If that doesnt match then leave that and continue. Is there any possibility for doing this operation?
Thanks in advance.
Sumanth.
Solved! Go to Solution.
Hi @sskoushik,
Suggestion1: In query editor mode
In this case we want to merge queries. From the left pane of Query Editor we select the query into which we want the other query to merge. Then select Merge Queries -> Merge Queries as New from the Home tab on the ribbon.
Then, you will get a new merged table combining the original two tables, now you can delete some unnecessary columns and rename columns.
Suggestion2: Using DAX
Apart from combining tables in Query Editor, we can create a new calculated table in visual mode. Please refer to below DAX formula:
T3 = CALCULATETABLE ( T2, FILTER ( T2, LOOKUPVALUE ( T1[C1], T1[C1], T2[C1], T1[C2], T2[C2] ) <> BLANK () ) )
Best regards,
Yuliana Gu
Hi @sskoushik,
Suggestion1: In query editor mode
In this case we want to merge queries. From the left pane of Query Editor we select the query into which we want the other query to merge. Then select Merge Queries -> Merge Queries as New from the Home tab on the ribbon.
Then, you will get a new merged table combining the original two tables, now you can delete some unnecessary columns and rename columns.
Suggestion2: Using DAX
Apart from combining tables in Query Editor, we can create a new calculated table in visual mode. Please refer to below DAX formula:
T3 = CALCULATETABLE ( T2, FILTER ( T2, LOOKUPVALUE ( T1[C1], T1[C1], T2[C1], T1[C2], T2[C2] ) <> BLANK () ) )
Best regards,
Yuliana Gu
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
70 | |
37 | |
29 | |
26 |
User | Count |
---|---|
91 | |
49 | |
45 | |
38 | |
37 |