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
Anonymous
Not applicable

How get field from other table

Hello Everyone !

 

I try to get some data from other table, i try with related(), but the relation don't permet to do this.

have you an idea ?

 

Thank you for you help ! My brain melt 😞

table.png

 

 

11 REPLIES 11
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

I made a simple example to understand your logic.

vyalanwumsft_0-1638854112906.png

This is based on your model, as shown in my picture, id Bill ="a", which should be "hi" or "hello"

If your dax is creating columns, “a” can only correspond to unique values, so logically it's not clear which value you want to return, so related is invalid.
Can you share a simple example and the result you want to export?
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello @v-yalanwu-msft ! 

 

Thanks you for helping !

 

I got a currency value on the table bill, like "EURO" or "DOLLAR". But i got my price line on order lines. I need to make a column for :

 

IF(bill[currency] = 'EURO';orderlines[priceline]/bill[valuecurrency];orderlines[priceline])

Hi, @Anonymous ;

Can you post sample data as text and expected output?
Not enough information to go on;

please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
4. Relation between your tables

 

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

Anonymous
Not applicable

Up 🙂

Anonymous
Not applicable

Up 🙂

Anonymous
Not applicable

@ebeery yes i tried 😞 I got a order table, line order, link table between order and bill and bill table. So i don't get the same field on different table.

Sorry, but your data model isn't really making any sense to me at all.

I'd highly recommend structuring in a star schema if at all possible.

Anonymous
Not applicable

I try to make a better scheme : 

 

MPinfo_0-1638651762718.png

 

Ok, but which field from which table are you trying to move to which other table?

Anonymous
Not applicable

I got a field named devise in bill, i try to get this in order lines

ebeery
Solution Sage
Solution Sage

@Anonymous without knowing the primary keys of your tables it's difficult to provide an exact solution, but have you tried using LOOKUPVALUE()?

https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax 

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.