I have a filter to select fruits. When selecting the fruit (Eg:- Apple) it filters the table accordingly. What I really want to be able to do is if Appleis selected, find the clients that purchased Apple and show all products purchased for those matching clients.
In this case I want the table to shows all of Joe’s purchases (Apple & Orange) as he purchased apple (See highlighted in attached pic for expected output).
Would appreciate if someone point me as to which of the training modules or post has something similar as I would like to try and solve it myself and then post back if i run into any issues.
@BrianJ Thanks for breadcrumbs. I had play with the 'CONCATENATEX " function and this will not work for me as the values all fit within a cell whereas i need each of those values to be separated out into individual rows.
The contains function worked a treat. I was able to join the disconnected tables with that function. However i still cannot figure out how to obtain all transactions for ‘Joe’ (i.e- Apples & Orange) if Apple is selected.
The only other possible solution is if Apple is selected in the filter, then I want to separate out all the unique Client and then use countrows with values to match the client names and pull out every transaction but I can’t seem to obtain a set of unique filtered client names as there are duplicates.
Here’s a sample copy of PBIX Sample.pbix (29.0 KB)
Glad you found that helpful. By the way, CONCATENATEX will work – you just need to combine it with the code for hard return, UNICHAR(10). In the link below, you’ll find a bunch of posts where I use this combination to return a scalar that actually looks like a multiline table. It’s an incredibly useful and flexible combination:
My pleasure – glad that worked well for you. You always have interesting questions, and this one had a number of aspects I want to delve a bit deeper into, so I’m in the process of making a video based on it. Look for it within the next couple of weeks on the Enterprise DNA YouTube channel.