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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Power Bi DAX function to M

Hello everyone,

 

I have a small issue, I created a column trough a lookupvalue directly in Power BI and I want to move it into Power Query because I need it for further processing. I'm kind of new to Power BI and still struggling with basic concepts.

 

Dim3 = LOOKUPVALUE('Dimension Set Entry'[DimensionValueCode],'Dimension Set Entry'[Dimension_Set_ID],'GL Entry'[Dimension_Set_ID], 'Dimension Set Entry'[Dimension_Code],LOOKUPVALUE('GenLedgSetup'[Shortcut_Dimension_3_Code],GenLedgSetup[Primary_Key],""))
 
Laurentiu_0-1624006028176.png

I've got a table for GL Entries, one for Dimension Set Entries and the General Ledger Setup table where I get my Dimension code "PL".

For simplicity the last LOOKUPVALUE can be replaced with "PL".

LOOKUPVALUE('GenLedgSetup'[Shortcut_Dimension_3_Code],GenLedgSetup[Primary_Key],"")  ==   "PL".

I have no idea how to perform a lookupvalue for 2 columns in M language in Power Query with searchValues from 2 different table ( GL Entry  and GenLedgSetup ).

 

I would highly appreciate if anyone can help me with that.

Thanks for your time and for your patience.

 

Hope you have a great day!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

In Power Query you don't (need to) perform a lookup. You perform a JOIN the way SQL joins are performed. There are myriads of vids about Power Query for all levels of advancement on YouTube. One such vid is How to Merge Tables with Power Query: VLOOKUP Alternative - YouTube

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

In Power Query you don't (need to) perform a lookup. You perform a JOIN the way SQL joins are performed. There are myriads of vids about Power Query for all levels of advancement on YouTube. One such vid is How to Merge Tables with Power Query: VLOOKUP Alternative - YouTube

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.