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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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