This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 = DISTINCT(union(FILTER(distinct(' Employee Hours'[Code]),'Employee Hours'[Code]<>""),FILTER(distinct(' Asset Hours'[Code]),'Asset Hours'[Code]<>"")))
Now, I want to add another condition for each table:
Simply, I just want to union the codes of two below tables if in employee table, crew type be MGMT and in Asset table, the crew type be Maint. Off course, empty codes must not be considered.
No idea what to do. your help would be highly appreciated.
Solved! Go to Solution.
Hi @Anonymous,
It works in my test. Did you make any changes?
Best Regards,
Dale
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
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?
Thank you so much for your time and help ![]()
no one has any idea?
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 33 | |
| 31 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 50 | |
| 33 | |
| 24 | |
| 24 |