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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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