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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

How to match and get value from other table

Hi Users,

I have to create calculated column in source table where the result would be from look up table provided below.

Hari_prasad_0-1624277603961.png

I have to filter, CurrencyNamre = Source table "C" column, Financial year = Source table "A" column, Filter P1-P12  by  Source table "B" column

Source table sample below.

Hari_prasad_2-1624278118367.png

 

Thanks.

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can use calculated column by dax, but you need to unpivot your first table first. I suggest you use the following m query. 

 

My sample data:

Capture30.PNG

Capture31.PNG

Then you can create a cutom function in m-query:

= (X,Y,Z) =>Record.Field(Table{[FY = X,Currency = Y]},Z)

 

You can use the function to add custom column in query editor:

Capture32.PNG

 

For more details, please refer to the pbix file.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

 

 

View solution in original post

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can use calculated column by dax, but you need to unpivot your first table first. I suggest you use the following m query. 

 

My sample data:

Capture30.PNG

Capture31.PNG

Then you can create a cutom function in m-query:

= (X,Y,Z) =>Record.Field(Table{[FY = X,Currency = Y]},Z)

 

You can use the function to add custom column in query editor:

Capture32.PNG

 

For more details, please refer to the pbix file.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

 

 

Anonymous
Not applicable

Hi @v-deddai1-msft ,

Report working smooth. Thanks .

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.