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.
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.
Solved! Go to 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.
For more details, please check the pbix as attached.
https://www.dropbox.com/s/hpo56lrvwl570sv/Distinct%20Customer%20Purchases.pbix?dl=0
Regards,
Frank
Hi @lakshmi9228,
Does that make sense? If so, kindly mark my answer as a solution to close the case.
Regards,
Frank
It might help but it is not related to the solution I am looking for.
The below screenshot describes the way how I am looking for.
Can someone please help me out
Hi @lakshmi9228,
Based on my test, we need to add a calculated column to your table to get the count of products.
Count = CALCULATE(DISTINCTCOUNT(Sales[Product]),FILTER(ALL(Sales),Sales[Customer]=EARLIER(Sales[Customer])))
For more details, please check the pbix as attached.
https://www.dropbox.com/s/wihx4i5bwuihkdd/Display%20Current%20and%20Previous%20Months.pbix?dl=0
Regards,
Frank
Hi Frank,
I tried using the below formulae, But I am not getting the exact customer list.
Please do let me know if there is any other way that I can go through it.
Hi @lakshmi9228,
I made another sample based on the data you shared here.
Firstly, we need create a calculated column using the formula as below.
Count = CALCULATE(DISTINCTCOUNT('Product'[Product]),FILTER(ALL('Product'),'Product'[name]=EARLIER('Product'[name])))
Then we can filter the table based on the calculated column.
For more details, please check the pbix as attached.
https://www.dropbox.com/s/hpo56lrvwl570sv/Distinct%20Customer%20Purchases.pbix?dl=0
Regards,
Frank
Hi Frank,
Perfect, is there a way that I can apply filter on Orderdate and see the count of products according to the orders in a given time period.
Thanks,
Lakshmi
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.
For more details, please check the pbix as attached.
https://www.dropbox.com/s/hpo56lrvwl570sv/Distinct%20Customer%20Purchases.pbix?dl=0
Regards,
Frank
Hi Frank,
Sorry for the late reply.
I tried using the above measures but unable to figure how did you get the filter column in the new table.
Please do let me know.
Thanks,
Lakshmi
Hi @lakshmi9228,
Here I enter the filter table directly.
Regards,
Frank
Hi Frank,
Thank you so much for your patience - It is working perfectly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
99 | |
73 | |
72 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |