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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-binbinyu-msft
Community Support
Community Support

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
v-binbinyu-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors