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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
gaddamkrishna
New Member

I want create a new column in Power Query editor using the below dax

I have created below DAX to convert the values from another table using Lookup and concatination in front end. it is working as expected. 

N_FX Rate = LOOKUPVALUE (
    'FX Rate'[Conversion factor],
    'FX Rate'[year-month-currency],
    CONCATENATE (
        CONCATENATE (
            '1 external workforce'[Year],
            '1 external workforce'[Month]
            ),
            '1 external workforce'[Invoice currency]
            )
            )

gaddamkrishna_0-1699270298395.png

Can you please help me to write the same logic in PowerBI M-Query(Power Query Editor). as I have to use this new column in power query editor to append the tables.

3 REPLIES 3
wdx223_Daniel
Super User
Super User

=#"FX Rate"{[#"year-month-currency"=Text.Format("#[Year]#[Month]#[Invoice currency]",_)]}?[Conversion factor]?

Hi Daniel- Thanks for your responce.

 

I have tried with above query and it ran successfully but values are showing null.
= Table.AddColumn(#"Removed Other Columns", "F_X", each #"FX Rate"{[#"year-month-currency"=Text.Format("#[Year1]#[Month1]#[Invoice currency]",_)]}?[Conversion factor]?)

gaddamkrishna_0-1699353026398.pnggaddamkrishna_1-1699353059434.png

 

 

Even I have created required fields from FX Rate table.

please show us the headers of both tables

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.