Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I have 2 tables and I want the distinct count of HCP_MDM_ID from both.
I´m using the following measure
#ReachUnion =
COUNTROWS (
DISTINCT (
UNION (
VALUES ( EVENTS[HCP_MDM_ID] ),
VALUES ( INTERACTIONS[HCP_MDM_ID] )
)
)
)
Can you help me please
Solved! Go to Solution.
@rmeng Try:
#ReachUnion =
COUNTROWS (
FILTER(
DISTINCT (
UNION (
VALUES ( EVENTS[HCP_MDM_ID] ),
VALUES ( INTERACTIONS[HCP_MDM_ID] )
)
),
[HCP_MDM_ID] <> BLANK()
)
)
or try this:
#ReachUnion =
COUNTROWS (
DISTINCT (
UNION (
DISTINCT( EVENTS[HCP_MDM_ID] ),
DISTINCT( INTERACTIONS[HCP_MDM_ID] )
)
)
)
@rmeng Try:
#ReachUnion =
COUNTROWS (
FILTER(
DISTINCT (
UNION (
VALUES ( EVENTS[HCP_MDM_ID] ),
VALUES ( INTERACTIONS[HCP_MDM_ID] )
)
),
[HCP_MDM_ID] <> BLANK()
)
)
or try this:
#ReachUnion =
COUNTROWS (
DISTINCT (
UNION (
DISTINCT( EVENTS[HCP_MDM_ID] ),
DISTINCT( INTERACTIONS[HCP_MDM_ID] )
)
)
)
SOLUTION FOUND THANKS