I need to create a calculated measure of distinct count of a column, sourced from two tables with filters applied to each. The tables have a relationship to each other & to a Date Dimension (one is Active, other in Inactive)
I have put together a working sample, with the measures I am using already, and showing a desired state measure.
I created a calculated measure using a SUMMARIZECOLUMNS on each table (USING TREATAS to filter, then did a UNION of these, but it did not retain filter context of the date.
Looking for some DAX help please!
Current measures:
Valid Touch Point Contact =
CALCULATE(
COUNTROWS(OrderContact),
OrderContact[Direction]="Inbound",
OrderHeader[Region]<>"IE"
)
Valid Touch Point Header =
CALCULATE(
DISTINCTCOUNT(OrderHeader[Order Number]),
USERELATIONSHIP(OrderHeader[Created Date], 'Date'[Date]),
OrderHeader[Type]="Web",
OrderHeader[Region]<>"IE"
)