Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
marabeda
Helper I
Helper I

Data from one table to another table with multiple conditions and value type

Dear Community, I need to transfer a value from a table to another table with multiple conditions and value type.

A create a sample of my table:

immagine.png

I try to managed with the lookupvalue but the function does not support text values compare with integer values.

Can anyone help on this matter?

Thank you

marabeda

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @marabeda ,

 

My lookupvalue function works fine.

Please try the following steps:

In “Table General” table , add a column with a dax formula

Lookup_Maxtime =
LOOKUPVALUE (
    'Table Max time'[Max time],
    'Table Max time'[Client ], 'Table General'[Client],
    'Table Max time'[Day of week], 'Table General'[Day of week]
)

vbinbinyumsft_0-1658133871286.png

 

 

If I misunderstand your demands, please feel free to let me know.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @marabeda ,

 

My lookupvalue function works fine.

Please try the following steps:

In “Table General” table , add a column with a dax formula

Lookup_Maxtime =
LOOKUPVALUE (
    'Table Max time'[Max time],
    'Table Max time'[Client ], 'Table General'[Client],
    'Table Max time'[Day of week], 'Table General'[Day of week]
)

vbinbinyumsft_0-1658133871286.png

 

 

If I misunderstand your demands, please feel free to let me know.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

vapid128
Solution Specialist
Solution Specialist

lookupvalue shuold work.

check your type of 2 [Day of week]

 

Or you can make combin index

 

index = [Clint]&[Day of week] on 2 tables

link index.

Hi vapid128, thx . I correct the type value in text and I used lookupvalue but with this expression:

Lookupvalue( max time[max time], max time[client], general[client],max time[day], general[day])

I get an error because the column contains too much row with same value.

Any idea?

thx a lot

Hi vapid128, I probably find the solution like this:

test2=CALCULATE(FIRSTNONBLANK(max time[max time],1),FILTER(ALL(max time), max time[Client]=general[Client] || max time[day] = general[day]))

I have to check if the data that I retrieve are correct.

Let you know.

HI, vapid128 does not work correctly, test2 does not take the correct value. I have to find another solution. Any help?

marabeda
Helper I
Helper I

Sorry a mistake:

If Table general[Client]=Table Max time[Client] and Table general[Day of week]=Table Max time[Day of week] then table general[Max time]=Table Max time [Max time]

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.