I am looking for prospective customers who bought certain products but didn’t buy a particular product and want to get a list of those customers.
For e.g.: In the attached pbix, I am looking for customers who didn’t buy “fungicide” this year. Out of these 6 customers, 4 of them (408, 697, 1343 and 2332) are those prospects. They didn’t buy it last year either but I am interested in this years sale.
2837 and 4441 bought those so I don’t want to see them in list.
This is pretty brilliant solution! If I just put this measure in filter pan as being not null, I get what I am looking for. I will have to just create different measures for different product prospects, which is exactly how it should be.
Thank you so much both of you to get me to the finish line!
As always, @AntrikshSharma’s solution is right on point. I took a quite different approach. I’ve still got one small bug in it, that at 3 AM is proving difficult to resolve, but I will look at it with fresh eyes tomorrow and once I get it working will just post it for comparison sake/learning value,
Glad you got what you need though - thanks, @AntrikshSharma.
Sorry, There is an update on this. Client wants to have that as columns instead of measure.
Because: if the user wants a list of customers with the prospect info, they would have to do multiple exports and merge all those files together into one to collect that information in once place. that’s not ideal.
the best solution is to include those flags in one export file. Fungicide prospect (Yes/No), adjuvant prospect… etc. each of those flags would be in the export file,
So basically, I should have 3 columns : Fungicide Prospects, Adjuvant Prospects and Max-In prospects which should be “Y” or “N” and summarize at the Customer Key level.
If you bought everything except Fungicide then you are fungicide prospect…so on and so forth.
So all blanks are where they didn’t buy fungicide. If I try to add one more column with same formula and just change it to “Adjuvant”, I get circular dependency error.