Forum Discussion
Changing context
- Anonymous7 years ago
Hi Hezekiah,
When I test on your data, I found a simply way to achieve your requirement, please try to use below measure formulas:
Count of All Purchased = COUNTROWS ( FILTER ( SUMMARIZE ( ALLSELECTED ( 'Product Usage' ), [ID], "Count", COUNT ( 'Product Usage'[Product] ) ), [Count] = COUNTROWS ( ALLSELECTED ( 'Product Usage'[Product] ) ) ) ) All Purchased Customer list = CONCATENATEX ( FILTER ( SUMMARIZE ( ALLSELECTED ( 'Product Usage' ), [ID], "Count", COUNT ( 'Product Usage'[Product] ) ), [Count] = COUNTROWS ( ALLSELECTED ( 'Product Usage'[Product] ) ) ), [ID], "," )Regards,
Xiaoxin Sheng
Hello, Anonymous. Thank you so much for the feedback. It's very helpful!
It appears that this challenge is currently out of the range of my skill level. If you have time, I would appreciate further elaboration. The functions to use, and perhaps a formula would indeed be very helpful for me.
Let's say that I have the following data structure:
Table: Person
Field: ID
Table: Product Usage
Field: PersonID
Field: Product Used
The values in the [Product Used] table could be Product 1 and Product 2.
I am every grateful for your help. Some general direction on what functions to use would be excellent. Thanks!
Hi Hezekiah,
If you can please share a pbix file with some sample file to test and code formula.
Regards,
Xiaoxin Sheng
- Hezekiah7 years agoFrequent Visitor
Yes, of course. I appreciate ypour help very much.
I don't see a file sharing function built into the forum, so here is a link to a Dropbox file:
- Anonymous7 years agoNot applicable
Hi Hezekiah,
When I test on your data, I found a simply way to achieve your requirement, please try to use below measure formulas:
Count of All Purchased = COUNTROWS ( FILTER ( SUMMARIZE ( ALLSELECTED ( 'Product Usage' ), [ID], "Count", COUNT ( 'Product Usage'[Product] ) ), [Count] = COUNTROWS ( ALLSELECTED ( 'Product Usage'[Product] ) ) ) ) All Purchased Customer list = CONCATENATEX ( FILTER ( SUMMARIZE ( ALLSELECTED ( 'Product Usage' ), [ID], "Count", COUNT ( 'Product Usage'[Product] ) ), [Count] = COUNTROWS ( ALLSELECTED ( 'Product Usage'[Product] ) ) ), [ID], "," )Regards,
Xiaoxin Sheng
- Hezekiah7 years agoFrequent Visitor
Wow, that's outstanding. Thank you so much for your help!