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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.