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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Sales performance tracker

Hi everybody, 

I have the following challenge.

 

The following table is available to me for our sales submit.

Submitted DateNameDesignationRegionStatus
10/10/2021ABCJr. Corp SalesWestApproved
10/10/2021CBASr. Corp SalesEastRejected
11/2/2021GFACorp SalesCentralApproved

 

And I want every employee to have a permanent monthly target based on the designation.

 

NameDesignationTarget
ABCJr. Corp Sales3
CBASr. Corp Sales5
GFACorp Sales4

 

So I can see the performance of each employee based on the number of approval statuses each month with the remaining or exceeded targets, like this.

 

MonthNameApprovedTargetScore or Variance
Jan 21ABC13-2
Feb 21ABC43+1

 

I would be happy about your support.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Join the second Table with first Table  and also join first table with date table and have month year column

Target Score=

Sumx(Table1, related(Table2[Target])

 

Variance = Countrows(Filter(Table1[Status] = "Approved")) - [Target Score]

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Create a relationship between two tables by using column [name].

Then create a measure as below:

 

Measure = 
var c_approved = CALCULATE(COUNT(sales[Status]),FILTER(sales,sales[Status]="Approved"))
return
c_approved-SELECTEDVALUE(Target[Target])

 

Capture.PNG

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Anonymous , Join the second Table with first Table  and also join first table with date table and have month year column

Target Score=

Sumx(Table1, related(Table2[Target])

 

Variance = Countrows(Filter(Table1[Status] = "Approved")) - [Target Score]

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi, thank you for replying me. But I want to show you, why the variance get the wrong calculation? Can you provide me again? I using Merge Queries as new, from first table to second table with LeftOuter join.

 

SharedScreenshot.jpg

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.