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

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.

Reply
oappdev
Helper I
Helper I

Check if Value Exists in another column.

Happy Sunday everyone,

Getting started with Power BI and need some guidance and the best approach. 

So i have 3 tables.

Table 1 - Hold the User Info with the questions.

Table 2 - Hold the the Value selected from the questions answer

Table 3 - Hold the Document Information/Type

 

Capture.PNG

 

Trying to figure out, when "Yes" is selected for "RecoveredFromCovid19AfterJune2020" to show in Column "SupportingDocument"

  • Yes    (If there is a file attached) for that user.
  • NULL (No file was attached)

Capture1.PNG

Thank you so much in advance. Please, let me know if anything is unclear.

 

 

1 ACCEPTED SOLUTION
vivran22
Community Champion
Community Champion

@oappdev 

 

Thanks for sharing details. Based on  your description, following is the sample I have created:

 

Data tables:

image.png

 

Model Schema:

 

Relationship.gif

 

Result:

image.png

 

Sample pbix file enclosed.

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

 

View solution in original post

6 REPLIES 6
vivran22
Community Champion
Community Champion

Hey @oappdev ,

 

I understand that the COVID19User and Audit are related by Id. How you are relating the Document table with other tables?

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

Thank you @vivran22 for the quick response.

 

On the Document table,  i have a column call "CreatedBy" and "LastModifiedBy" that capture the user Login ID that upload the document. Let me know if that answer your question.

 

vivran22
Community Champion
Community Champion

@oappdev 

 

Can you share your model schema?

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

Happy Wednesday, @vivran22 Sorry for the delay.

Here is an updated Information. I was not able to grab the model schema, sorry about that. Let me know, if this works.

 

PowerBI.PNG

 

Thank you again for all your help. Let me know if you need any additional information.

vivran22
Community Champion
Community Champion

@oappdev 

 

Thanks for sharing details. Based on  your description, following is the sample I have created:

 

Data tables:

image.png

 

Model Schema:

 

Relationship.gif

 

Result:

image.png

 

Sample pbix file enclosed.

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

 

Absolutely, Crazy Monday 😳 Give me a few @vivran22  Thank you again.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors