Forum Discussion
Anonymous
8 years agoNot applicable
Adding a condition in distinct union function
Hi everybody, I am new in Power Bi & appreciate if anyone help me here: I want to union the codes in 3 seperate tables and set the below formula which works correctly. Maintenance WO = DISTIN...
- 8 years ago
v-jiascu-msft
8 years agoMicrosoft Employee
Hi Anonymous,
You almost got there. Try the formula below, please.
Table =
DISTINCT (
UNION (
CALCULATETABLE (
VALUES ( Employee[Code] ),
FILTER (
Employee,
ISBLANK ( Employee[Code] ) = FALSE ()
&& Employee[Crew] = "MGMT"
)
),
CALCULATETABLE (
VALUES ( Asset[Code] ),
FILTER ( Asset, ISBLANK ( Asset[Code] ) = FALSE () && Asset[Crew] = "Maint" )
)
)
)
Best Regards,
Dale
- Anonymous8 years agoNot applicable
Hi v-jiascu-msft,
Thanks for your time.
I tried your formula, but I got an error message that "Too few arguments were passed to the Union Function.The minimum argument count for the function is 2"
Any idea?
- v-jiascu-msft8 years agoMicrosoft Employee
- Anonymous8 years agoNot applicable
Thank you so much for your time and help :smileyvery-happy: