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
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
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.