Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
Is it possible to create a column that only has distinct values from 3 columns on 3 different tables. I found the formula below but it keeps giving me errors.
Thank you in advance!
Country = FILTER( DISTINCT(UNION(VALUES('4 - Data (CSAT)'[Country]), VALUES('4 - Data (Voice)'[Country]))), [Country] <> BLANK() )
Solved! Go to Solution.
try this
Master Policy Table =
FILTER (
DISTINCT (
UNION (
VALUES ( 'policy finance_Initial'[policy_uniqueid] ),
VALUES ( 'policy finance_target'[policy_uniqueid] ),
VALUES ( 'policy premium'[policy_uniqueid] )
)
),
[policy_uniqueid] <> BLANK ()
)
Before you can do a UNION your columns need to have the same name. Use SELECTCOLUMNS to rename them as needed.
try this
Master Policy Table =
FILTER (
DISTINCT (
UNION (
VALUES ( 'policy finance_Initial'[policy_uniqueid] ),
VALUES ( 'policy finance_target'[policy_uniqueid] ),
VALUES ( 'policy premium'[policy_uniqueid] )
)
),
[policy_uniqueid] <> BLANK ()
)
That worked perfectly! Thank you for all of your help!
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
45 |