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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculate rate between columns in different tables at the row level

I have Leads in one table and Inventory count in another.  I need to calculate the rate of leads per inventory at a daily customer grain.

using  Leads per Listing = SUM(Leads[LEADS])/SUM('Listings Inventory'[INVENTORY])  is returning a single value for all rows.  Please Help.

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@Anonymous 

its correct. but if you create a measure it will enable row context

 Leads per Listing Measure = 
DIVIDE(
CALCULATE(SUM(Leads[LEADS])),
CALCULATE(SUM('Listings Inventory'[INVENTORY]) )
)

and make sure you have appropriate relationships between your tables


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

If you try to create calculate column,just try formula as below:

Leads per Listing1 = DIVIDE(LEADS[LEADS],RELATED('Listings Inventory'[INVENTORY]))

85.png

 

If you are creating the following measure but do not get the correct result, 

Leads per Listing = SUM(Leads[LEADS])/SUM('Listings Inventory'[INVENTORY])

please make sure that the types of the fields in table visual  are "Don't Summmarized"

84.png

pbix attached

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

az38
Community Champion
Community Champion

@Anonymous 

its correct. but if you create a measure it will enable row context

 Leads per Listing Measure = 
DIVIDE(
CALCULATE(SUM(Leads[LEADS])),
CALCULATE(SUM('Listings Inventory'[INVENTORY]) )
)

and make sure you have appropriate relationships between your tables


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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