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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
swapnilklkar
New Member

How to select columns in PowerBI using a parameter

I have to build a Bilingual powerBI report. In my data, I have both English and French descriptive columns. 

In tableau, for e.g. I was able to create a parameter called 'Language and then create a calculated column like Product = IIF([Language], [PRODUCT_NAME_EN],[PRODUCT_NAME_FR])

This would allow me to use the Product column in other places and it would automatically decide which text to display based on the language the user chooses.

How would I go about doing the same in PowerBI? 

I tried the same approach in powerBI, by creating a Binary parameter, but it doesnot allow me to reference the parameter while creating a new column. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @swapnilklkar ,

I created a sample pbix file(see the attachment) using two different methods, please check if they can help you achieve your requirement.

1. By creating a field parameter

 

Language = {
    ("EN", NAMEOF('Table'[PRODUCT_NAME_EN]), 0),
    ("FR", NAMEOF('Table'[PRODUCT_NAME_FR]), 1)
}

 

vyiruanmsft_0-1703147003763.png

2. By creating a Power Query parameter

Create query parameterCreate query parameter

Create a custom columnCreate a custom column

vyiruanmsft_3-1703147178847.png

Best Regards 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @swapnilklkar ,

I created a sample pbix file(see the attachment) using two different methods, please check if they can help you achieve your requirement.

1. By creating a field parameter

 

Language = {
    ("EN", NAMEOF('Table'[PRODUCT_NAME_EN]), 0),
    ("FR", NAMEOF('Table'[PRODUCT_NAME_FR]), 1)
}

 

vyiruanmsft_0-1703147003763.png

2. By creating a Power Query parameter

Create query parameterCreate query parameter

Create a custom columnCreate a custom column

vyiruanmsft_3-1703147178847.png

Best Regards 

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.

Top Solution Authors