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

Counting the results of a measure

Our sales team have lots of sales plans.  To identify open plans I created a measure to evalute for a null or future end date.

I then want to list out each sales team member and a count of their open plans.

However, when I add the measure to the table visual a "count" is not an option.

Where have I gone wrong and how can I produce a count?

 

Measure:

Open Assignment = var date1=SELECTEDVALUE(v_account_HT_solicitor[ASSIGNMENT END DATE])
Return
If(ISBLANK(date1) || date1>TODAY(), 1,0)
 
Plan Table
   Sales Person     Plan ID     Plan End Date  
Jane1 
Jane25/1/2024
Bob3 
 
Sales Person Table
   Sales Person  
Jane

Bob

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @geoffgarcia 

 

You can try the following methods.

Open Assignment = Var date1=SELECTEDVALUE('Plan Table'[Plan End Date])
Return
If(ISBLANK(date1) || date1>TODAY(), 1,0)
Count person Measure = 
Var _table=SUMMARIZE('Plan Table',[Sales Person],[Plan ID],"M",[Open Assignment])
Return
COUNTX(_table,[M])

vzhangti_0-1693295902354.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @geoffgarcia 

 

You can try the following methods.

Open Assignment = Var date1=SELECTEDVALUE('Plan Table'[Plan End Date])
Return
If(ISBLANK(date1) || date1>TODAY(), 1,0)
Count person Measure = 
Var _table=SUMMARIZE('Plan Table',[Sales Person],[Plan ID],"M",[Open Assignment])
Return
COUNTX(_table,[M])

vzhangti_0-1693295902354.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

lbendlin
Super User
Super User

However, when I add the measure to the table visual a "count" is not an option.

You cannot measure a measure.  Instead, create a new measure that incorporates the entire business logic including the counting part.

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.