I am stumped on a seemingly simple issue. I have a single table of transactions and I would like to add a calculated column for some quality control. I have ProductID column and a ProductName column. I want to flag any productids that have more than 1 unique ProductNames.
=CALCULATE(DISTINCTCOUNT([ProductName]),FILTER(Data,Data[ProductID]=[ProductID]))
Any idea where i'm going wrong, here? I am definitely open to suggestions. I realize that I can accomplish the same thing with a pivot table count but I am hoping to nest this in with a few other QC formulas to keep things tidy.
Thanks for any suggestions!
=CALCULATE(DISTINCTCOUNT([ProductName]),FILTER(Data,Data[ProductID]=[ProductID]))
Any idea where i'm going wrong, here? I am definitely open to suggestions. I realize that I can accomplish the same thing with a pivot table count but I am hoping to nest this in with a few other QC formulas to keep things tidy.
Thanks for any suggestions!