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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
160475
Helper I
Helper I

custom column 2 tables

dears,

good day!!

 

in the pic below you can see 2 columns one called BR_NUM this is from table A and i have last column called Branch From table B 

i would like to creat a column where it says the branch match or not matched

can anyone help please ? 

160475_0-1660469995248.png

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @160475 

 

If they are columns from two tables, you can create a measure to compare the values. 

Measure =
IF (
    SELECTEDVALUE ( 'table A'[BR_NUM] ) = SELECTEDVALUE ( 'table B'[BRANCH] ),
    "Yes",
    "No"
)

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @160475 

 

If they are columns from two tables, you can create a measure to compare the values. 

Measure =
IF (
    SELECTEDVALUE ( 'table A'[BR_NUM] ) = SELECTEDVALUE ( 'table B'[BRANCH] ),
    "Yes",
    "No"
)

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

TomMartens
Super User
Super User

Hey @160475 ,

 

is there a relationship between table A and B, if so what is the cardinality of this relationship? Is Branch a base column, a calculated column, or a measure?

If it's not a base column provide the DAX statement that does the calculation.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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