Forum Discussion
Matching Logic Report
- 1 year ago
Hi cingram11,
Yes, you can do this without creating a new table. You just need to add a calculated column in your existing table that checks if the item is bought by both Restaurant A and B.
Dax you can use :CommonItemFlag = VAR TargetBrands = {"Restaurant A", "Restaurant B"} VAR BrandCount = CALCULATE ( DISTINCTCOUNT(SalesData[Brand]), FILTER ( SalesData, SalesData[Item #] = EARLIER(SalesData[Item #]) && SalesData[Brand] IN TargetBrands ) ) RETURN IF(BrandCount = 2, 1, 0)This approach will return a value of 1 for items that are shared between the two restaurants. You can then filter this column in your report to display only these common items.
I hope this information is helpful.
If the answer is helpful, please click "Accept Answer" and feel free to give a Kudos, so others can benefit as well.
Best Regards,
Harshitha.
Please provide a workable sample data (not an image), your expected result from the same sample data and your reasoning behind. You may post a link to Excel or a sanitized copy of your PBIX stored in the cloud.
Hello
I hope I have understood your question and if not, let me know.
In this case I am going to represent it in Restaurant (A, B, C) and the next column would be ArticleID. I attach a photo of how it could be represented in your report. I don't know if you can attach a GDP file. Luck