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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
JimSales81
Frequent Visitor

Dynamically show the % of Sales People with 100k in Sales

Hello,

 

I have 3 tables:

1.) Calendar Dimension Table with Day/Month/Quarter etc.

2.) Sales Rep Dimension Table with Name, region, etc.

3.) Sales Fact table with line by line sales by product, Sales Rep, Date, etc.

I'm trying to count the number of Reps with 100k in sales.  When I filter for Q1 2024 i want it it count for Q1. When i switch to Q2, I want the number to change. 

Count Rep with 100K quarterly sales = Calculate(COUNT('DIM Sales Rep'[Sales Rep]), [Total Sales]>100000))
 
Total Sales = calculate(sum('FACT Sales'[Product Sales]))
 
I get this error 

A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
 
Obviously this needs to be filtered further.  Any help would be appreciated.

 



1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
The sample is calculating to count sales rep with over 15K sales amount per quarter.

Jihwan_Kim_1-1713843928110.png

 

 

 

Jihwan_Kim_0-1713843915362.png

 

Total Sales measure: = 
SUM(Sales[Sales])

 

 

Count Rep with 100K quarterly sales: = 
CALCULATE (
    COUNTROWS ( Sales_Rep ),
    FILTER ( Sales_Rep, [Total Sales measure:] > 15000 )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
The sample is calculating to count sales rep with over 15K sales amount per quarter.

Jihwan_Kim_1-1713843928110.png

 

 

 

Jihwan_Kim_0-1713843915362.png

 

Total Sales measure: = 
SUM(Sales[Sales])

 

 

Count Rep with 100K quarterly sales: = 
CALCULATE (
    COUNTROWS ( Sales_Rep ),
    FILTER ( Sales_Rep, [Total Sales measure:] > 15000 )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.