Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Sujata_rao090
Regular Visitor

If condition matches, show data from table A else table B

Hi, I have a requirement, where we have two tables, lets say Table 'A' and Table 'B', both tables have only 'ID' as common column. Now the ask is:  if (Table 'A' [ID]= Table 'B' [ID]) then show all the data from Table 'A' orelse show all the data from Table'B' for that particular ID. 

How can we acheive this in powerbi, we are not using sql here, so that is not an option. 

Thanks!

3 REPLIES 3
Greg_Deckler
Super User
Super User

@Sujata_rao090 Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi, Attaching screenshot of what I expect to achieve in powerbi 

Sujata_rao090_0-1687950500913.png

 

Hi, I am attaching snapshot of what I would like to acheive in powerbi

Sujata_rao090_1-1687950293228.png

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.