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
ankitkalsara
Helper I
Helper I

How to compare Quota amount with Actuals for Sales reps

Hi team,

 

I am struggling to create view for Quota amount with Actual amount for Sales rep in Power BI. My source object is Opportunity from Salesforce and I have stored quota amount in excel file as below.

 

Attaching here the pbix file: pbix file 

Link to test data: test data 

 

Quota MonthSales Team MemberMonthly Quota Target
 Jan - 2021A1000
Feb - 2021A1000
Mar - 2021A1000
Jan - 2021B3000
Feb - 2021B3000
Mar - 2021B3000
Jan - 2021C2000
Feb - 2021C2000
Mar - 2021C2000

 

Now when I pull the records from Salesforce under Opportunity object, I get below data.

Close Date MonthOpportunity Close DateOpportunity OwnerOpportunity Amount
Jan - 202110 Jan 2021A100
Jan - 202112 Jan 2021A200
Jan - 202115 Jan 2021A300
Jan - 202130 Jan 2021C400
Jan - 202131 Jan 2021C500
Feb - 20215 Feb 2021B600
Feb - 202110 Feb 2021B700
Feb - 202120 Feb 2021A800
Mar - 20217 Mar 2021C900

 

Based on the above tables, I am trying to generate table as below which shows how much amount each member generated per month against the quota amount per month.

Quota MonthSales Team MemberQuota AmountOpportunity Amount
Jan - 2021A1000600
Jan - 2021B30000
Jan - 2021C2000900
Feb - 2021A1000800
Feb - 2021B30001300
Feb - 2021C20000
Mar - 2021A10000
Mar - 2021B30000
Mar - 2021C2000900
1 ACCEPTED SOLUTION

I still keep the original formula and relationship, then it gives exactly your expected result

Your new updated PBI file

 

Capture.PNG

View solution in original post

3 REPLIES 3
linh091
Resolver I
Resolver I

I created unique keys in each table and model them with relationship

You can download PBI file here

Hi @linh091 : thank you for your reply but unfortunately I messed up in the sample data in pbix file.

 

Here is the updated pbix file.

 

If Close Date is 12-Jan-2021, 15-Jan-2021, 30-Jan-2021 then Close Date Month will be Jan 2021 and I incorrectly mentioned as Feb-2021.

 

Screenshot 2021-10-01 090707.png

 

I guess the unique key will not work in that case. Any help will be much appreciated. 

I still keep the original formula and relationship, then it gives exactly your expected result

Your new updated PBI file

 

Capture.PNG

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.