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
yjetti_gps
Frequent Visitor

DAX Measure: Calculate count distinct users filtered by measure for selected time period

Hi,

Need Help

I am new to DAX and PBI need help calucating a measure.

 

Calculate count distinct users with sum(sales) >100 during the filtered period. please help ne achive this one.

 

Output Example:

State# users (Spent > 100)
California300
Texas250
New York150

 

Dimensions:

State

User

Calander 

 

Fact:

Sales

 

2 REPLIES 2
Anonymous
Not applicable

Hi @yjetti_gps ,

According to the information, I could not infer which field is associated between these tables.

Please upload some data samples and expected output.Please do mask sensitive data before uploading.

 

Best Regards,

Eyelyn Qin

 

mahoneypat
Microsoft Employee
Microsoft Employee

Assuming you have a measure called [Spend] (that sums up your Fact table), you can use a measure like this to get the count of users the spent >100.

 

Users Over 100 =
COUNTROWS ( FILTER ( VALUES ( Table[User] ), [Spent] > 100 ) )

 

Replace Table with your actual table name.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.

Top Solution Authors