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
lakshmi9228
Helper III
Helper III

Count of products

I have these products  I need to know, How many customers bought more than one product in a particular time period.

I need a filter , where i can select count of products such as 2, 3,4 etc 

At that time, I need to see the customers list. 

How can I get that, can someone help me out with this.     

 

For example, if I select count as 2, I need the customers list who had purchased any 2 products.

1 ACCEPTED SOLUTION

Hi @lakshmi9228,

 

To get the count of products accroding to the filered result, we need to create a measure like this.

 

DYcount = CALCULATE(COUNTROWS('Product'),FILTER(ALLSELECTED('Product'),'Product'[name]=MAX('Product'[name])))

Then we can create a slicer and create another measure. And filter the table visual based on the Measure, make the result is 1.

 

Measure = IF([DYcount]=SELECTEDVALUE(Table1[Filter]),1,0)

Here is the result for your reference.

1.PNG

 

For more details, please check the pbix as attached.

https://www.dropbox.com/s/hpo56lrvwl570sv/Distinct%20Customer%20Purchases.pbix?dl=0

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

13 REPLIES 13

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.