Forum Discussion

JustSayJoe's avatar
JustSayJoe
Advocate IV
2 years ago
Solved

Measure Filtering Scenario

I need help getting around an issue I have with a measure getting filtered incorrectly for my purposes. See below scenario.

 

TABLE_A

Includes columns: [Email Address], [Date], [Order ID], [Product]

 

Measure is [Returning Customers] and has the following code...

  COUNTROWS(FILTER(VALUES('TABLE_A'[Email Address], DISTINCTCOUNT('TABLE_A'[Order ID]) > 1 && DISTINCTCOUNT('TABLE_A'[Product]) > 1))

 

This measure works great when I'm filtering by the Date, but when I filter by the Product it does not display the correct values. I get the why of it happening, but I can't figure out how to make this measure still give me the correct number of returning customers when filtered by Product only. Any help here would be very much appreciated. Thanks!

 

5 Replies