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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Spencer
Helper II
Helper II

Dividing by column in another table

Hi

 

I have a bunch of em_codes associated with my calculated column ALRemain. I want a new column which divides the ALRemain by a value associated with the em_code (the hours column), which can be found in my EmCode Table.

What would be the best method to achieve this?

 

Thanks

AL RemainAL RemainEmCodes TableEmCodes Table

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@Spencer Create relationship between Hours and ALRemain table using em_code column ie 1 to many relation from Hours table to ALRemain table. Then in ALRemain table create calculated column as below,

 

='TABLENAME'[alremain] / RELATED(TABLENAME[hours])

View solution in original post

2 REPLIES 2
ankitpatira
Community Champion
Community Champion

@Spencer Create relationship between Hours and ALRemain table using em_code column ie 1 to many relation from Hours table to ALRemain table. Then in ALRemain table create calculated column as below,

 

='TABLENAME'[alremain] / RELATED(TABLENAME[hours])

Yes that's it!

Thanks very much.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.