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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Calling a column from table B to another table A in the formula for creating a custom column

Hello,

 

I would like to create a personalized column on power bi in the table A which calculates the cost including tax in euros. For that i have the following formula :  Cost EuroTTC = (Cost$/(Marge+Cost$))*TVA

My problem is that the "Marge" and "TVA" are columns from a different Table named B and i don't know how to call them in Table A to create my personalized column Cost EuroTTC.

Can somebody please help me?

 

Thank you.

1 ACCEPTED SOLUTION

Hi @Anonymous ,

My data model is just the same with your description, and the two tables should have a relationship.

vkalyjmsft_0-1635842040631.png

 

vkalyjmsft_1-1635842040633.png

 

When you enter the RELATED(, the next table will appear automatically.

vkalyjmsft_2-1635842040635.png

 

Best Regards,
Community Support Team _ kalyj

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

8 REPLIES 8
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

My formula is DAX calculated column formula, please create it in a calculated column instead of using it in power query side, which is more easier.

vkalyjmsft_0-1635752561475.png

 

Best Regards,
Community Support Team _ kalyj

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

Anonymous
Not applicable

The Cost is in a table "Data" and the marge and the TVA are in a different table "Facturation"

And the column Cost(TTC) that i want to create will be in the table "Data"

Anonymous
Not applicable

Rena_0-1635768728451.png

Hello @v-yanjiang-msft 

Thanks for helping.

i tried your formula and i have this error : "The column 'Facturation[#"Marge Inetum"]' does not exist or has no relation to a table available in the current context. 

Hi @Anonymous ,

My data model is just the same with your description, and the two tables should have a relationship.

vkalyjmsft_0-1635842040631.png

 

vkalyjmsft_1-1635842040633.png

 

When you enter the RELATED(, the next table will appear automatically.

vkalyjmsft_2-1635842040635.png

 

Best Regards,
Community Support Team _ kalyj

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

Anonymous
Not applicable

Hello @v-yanjiang-msft 

i have try the same process to create a new measure but i have this issue :

Rena_0-1635932931998.png

There is a relationship between the two tables DATA and TBBResume

Rena_1-1635933172566.png

But it seems to be an error saying : "Column 'TBBResume [Sauvegarde]' does not exist or has no relation to an available table in the current context."

 

Anonymous
Not applicable

Thank you so much. It works😊

VahidDM
Super User
Super User

Hi @Anonymous 

 

You can use LOOKUPVALUE or RELATED DAX functions to call them.

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

Appreciate your Kudos!!

 

Anonymous
Not applicable

it doesn't work. DAX did'nt recognise the RELATED OR LOOKUPVALUE function

Rena_0-1635487779439.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.