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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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