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

Filter by count distinct value

Hi,

I have Customers that have 1 or more contracts in one or more countries.


I would like to filter all my visuals based on a set min value of contract each customer has. To see what are my stats for all customers, VS the stats for customers that have at least 2 contracts etc …

 

Example of data set
Customer ID / Customer Name / Country / Contract ID / Region / Value / Product Name

 

Any help would me much appreciated.

2 REPLIES 2
amitchandak
Super User
Super User

@jamesveron , Try a new measure like

countx(filter(summarize(Table,Table[customer ID],"_1", distinctCOUNT(Table[contract Id])),[_1]>=2),[customer])

@amitchandak 

thanks but I cannot add this nes measure to the "Filters on all pages"

and why once use Customer ID and the other Customer? could we not use only customer (name)?

Regards

 

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.