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
baBI123
Helper II
Helper II

True/False in a new field after comparing two fields.

Hello, 
I am a begginer at POWER BI and a begginer/intermediate at excel. I need help!
I need to compare the MASTER.PART NUMBER field on the MARK ROTABLES table to the PART NUMBER field on the CAP LIST table. Then, I need to have POWER BI to write TRUE if there are matching part numbers in the SERIALIZED field in the MARK ROTABLES table and FALSE if there are not. 

If I have not explained myself clearly enough, please ask for calrification.
I am new to all of this and I will take any help I can get, I greatly appreciate it!




1 ACCEPTED SOLUTION

Hi @baBI123,

 

You can add below calculate column to 'MARK ROTABLE' table to check if current row is exist in 'CAP LIST' table:

 

SERIALIZED ='MARK ROTABLE'[MASTER_PART NUMBER] IN ALL ( 'CAP LIST'[PART NUMBER] )

 

Regards,

Xiaoxin Sheng

 

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

11 REPLIES 11
Ashish_Mathur
Super User
Super User

Hi,

 

Share your source data and also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/


CAP LIST TABLECAP LIST TABLEMARK ROTABLES TABLE (WITH SERIALIZED FIELD)MARK ROTABLES TABLE (WITH SERIALIZED FIELD)

Hi Ashish,

my data source comes from excel spreadsheets (data was imported to excel from an oracle database)
I need the T/F result to show in the "serialized" field. 
Is this what you are asking for?? 

 

 

Hi,

 

Share the link from where i can download your file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

what do you mean?

Upload the file to Google Drive and share the download link here.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Unfortunately, I can not do that because there is private information on the file that cannot be shared..
However, can you explain a solution to me?

Hi @baBI123,

 

You can add below calculate column to 'MARK ROTABLE' table to check if current row is exist in 'CAP LIST' table:

 

SERIALIZED ='MARK ROTABLE'[MASTER_PART NUMBER] IN ALL ( 'CAP LIST'[PART NUMBER] )

 

Regards,

Xiaoxin Sheng

 

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

I did some research on calculated columns and this worked like a charm. Thank you @v-shex-msft

error.jpg

Hello v-shex-msft, error.jpg
I am getting this error reading. Please help!
Thank you

Hi @baBI123,

 

My formula is calculated column, you can't direct use it as measure. BTW, your formula has duplicate start part.('measure = SERIALIZED =')

 

10.PNG

 

In addition, if you want to use measure, you can try to use below measure formula:

Measure version:

Measure = MAX('MARK ROTABLE'[MASTER_PART NUMBER]) in ALLSELECTED( 'CAP LIST'[PART NUMBER] )

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi,

 

Explore these two functions - RELATED() and LOOKUPVALUE()


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.