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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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