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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Syndicate_Admin
Administrator
Administrator

How to bring a column from another table with a condition

Dear, I have created a new table (float error) from the chemical table. However I need to create 1 column with the Cu (%) data of the chemical table, but with a condition, Sample Type = CAB

Best regards

Violet

Chemistry

viole002_0-1671021534821.png

Float error

viole002_1-1671021663890.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Syndicate_Admin ,

 

Here are the steps you can follow:

1. Create calculated column.

Cu% CAB =
SUMX(FILTER(ALL('Table'),'Table'[ID Muestra]=EARLIER('Table2'[ID Muestra])&&'Table'[Tipo Muestra]="CAB"),[Cu(%)])

2. Result:

vyangliumsft_0-1671090191802.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Syndicate_Admin ,

 

Here are the steps you can follow:

1. Create calculated column.

Cu% CAB =
SUMX(FILTER(ALL('Table'),'Table'[ID Muestra]=EARLIER('Table2'[ID Muestra])&&'Table'[Tipo Muestra]="CAB"),[Cu(%)])

2. Result:

vyangliumsft_0-1671090191802.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

JW_van_Holst
Resolver IV
Resolver IV

Most obvious solution is to include the columns you want to reference in your calculated table. If this, for some reason, is not desirable, you are left with to option.

  1. Link the tables in het modelling tab and use RELATED
  2. Without a link, use LOOKUPVALUE.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors