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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors