Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I have 2 tables
Table Product:
Name | Tag |
Name 1 | Tag 1 |
Name 2 | Tag 2 |
Name 3 | Tag 3 |
Name 4 | Tag 4 |
Name 5 | Tag 5 |
Name 6 | Tag 6 |
Name 7 | Tag 7 |
Name 8 | Tag 8 |
Name 9 | Tag 9 |
Name 10 | Tag 10 |
Table Support
Name | Tag | SLA |
Name 1 | Tag 1 | 5/7 |
Name 22 | Tag 2 | 5/7 |
Name 33 | Tag 3 | 7/7I |
Name 44 | Tag 4 | 7/7I |
Name 5 | Tag 5 | 5/7 |
Name 6 | Tag 6 | 5/7 |
Name 7 | Tag 7 | 7/7I |
Name 8 | Tag 8 | 7/7I |
Name 9 | Tag 9 | 7/7R |
Name 10 | Tag 10 | 7/7R |
I would like to pull the column Support[SLA] to table product with condition: Product[Name] = Support[Name], if Product[Name] <> Support[Name] then Product[Tag] = Support[Tag]
Could you please help?
Many thanks in advance.
Tg
Solved! Go to Solution.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
sorry . my mistake .
let me correct the code :
maxx(
filter(
support_table,
support_table[name] = product_table[name] || support_table[tag] = product_table[tag]
) ,
support_table[sla]
)
you need to just add the support_table[sla]
you can also use @ThxAlot dax . it works also .
@vnqt hello ,
try this code and tell me it works for you .
Thank you @Daniel29195
Your solution works but I would like to add the column SLA to the table Product (DAX or PowerQuery) . Do you have any suggestion ? Thank you.
you can use dax :
create a calculated column in product table as follow :
maxx(
filter(
support_table,
support_table[name] = product_table[name] || support_table[tag] = product_table[tag]
)
)
can you try this caclulated column, and tell me if it works .
best regards,
hi,
I got this error "The syntax for "VDI" is incorrect."
Kind regards,
Tg
@vnqt can you please share w screenshot of the dax you wrote + the error you are having.
Too few arguments were passed to the MAXX function. The minimum number of function arguments is 2.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
90 | |
84 | |
70 | |
49 |
User | Count |
---|---|
143 | |
121 | |
112 | |
59 | |
58 |