March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
167 | |
117 | |
63 | |
57 | |
50 |